Completed
Push — master ( ed4ef2...61bf0f )
by Cheren
02:56
created

HtmlHelper::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
/**
3
 * CakeCMS Core
4
 *
5
 * This file is part of the of the simple cms based on CakePHP 3.
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 *
9
 * @package   Core
10
 * @license   MIT
11
 * @copyright MIT License http://www.opensource.org/licenses/mit-license.php
12
 * @link      https://github.com/CakeCMS/Core".
13
 * @author    Sergey Kalistratov <[email protected]>
14
 */
15
16
namespace Core\View\Helper;
17
18
use Cake\View\View;
19
use Cake\View\Helper\HtmlHelper as CakeHtmlHelper;
20
21
/**
22
 * Class HtmlHelper
23
 *
24
 * @package Core\View\Helper
25
 */
26
class HtmlHelper extends CakeHtmlHelper
27
{
28
29
    /**
30
     * HtmlHelper constructor.
31
     *
32
     * @param View $View
33
     * @param array $config
34
     */
35
    public function __construct(View $View, array $config = [])
36
    {
37
        parent::__construct($View, $config);
38
        $this->_configWrite('templates.icon', '<i class="{{class}}"{{attrs}}></i>');
39
    }
40
}
41