Completed
Pull Request — master (#12)
by
unknown
02:11
created

ConfigurationHook::onConfigurationCatalogTop()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
/*************************************************************************************/
3
/*      This file is part of the RewriteUrl module for Thelia.                       */
4
/*                                                                                   */
5
/*      Copyright (c) OpenStudio                                                     */
6
/*      email : [email protected]                                                       */
7
/*      web : http://www.thelia.net                                                  */
8
/*                                                                                   */
9
/*      For the full copyright and license information, please view the LICENSE.txt  */
10
/*      file that was distributed with this source code.                             */
11
/*************************************************************************************/
12
13
namespace RewriteUrl\Hook;
14
15
use Thelia\Core\Event\Hook\HookRenderEvent;
16
use Thelia\Core\Hook\BaseHook;
17
18
/**
19
 * Class ConfigurationHook
20
 * @package RewriteUrl\Hook
21
 * @author Tom Pradat <[email protected]>
22
 */
23
class ConfigurationHook extends BaseHook
24
{
25
    public function onConfigurationCatalogTop(HookRenderEvent $event)
26
    {
27
        $event->add($this->render(
28
            'configuration-catalog.html'
29
        ));
30
    }
31
}