Skip to content

Commit 17189cb

Browse files
init project
1 parent e226d29 commit 17189cb

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

CmsSeoComponent.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
use skeeks\cms\helpers\StringHelper;
1212
use Yii;
13+
use yii\base\BootstrapInterface;
1314
use yii\base\Event;
1415
use yii\helpers\ArrayHelper;
1516
use yii\web\View;
@@ -19,7 +20,7 @@
1920
* Class CmsSeoComponent
2021
* @package skeeks\cms\seo
2122
*/
22-
class CmsSeoComponent extends Component
23+
class CmsSeoComponent extends Component implements BootstrapInterface
2324
{
2425
/**
2526
* Можно задать название и описание компонента
@@ -137,12 +138,8 @@ public function renderConfigForm(ActiveForm $form)
137138

138139
}
139140

140-
141-
142-
public function init()
141+
public function bootstrap($application)
143142
{
144-
parent::init();
145-
146143
if (!$this->enableKeywordsGenerator)
147144
{
148145
return $this;
@@ -158,7 +155,6 @@ public function init()
158155
});
159156
}
160157

161-
162158
public function generateBeforeOutputPage(\yii\web\View $view)
163159
{
164160
$content = ob_get_contents();

0 commit comments

Comments
 (0)