File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010
1111use skeeks \cms \helpers \StringHelper ;
1212use Yii ;
13+ use yii \base \BootstrapInterface ;
1314use yii \base \Event ;
1415use yii \helpers \ArrayHelper ;
1516use yii \web \View ;
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 ();
You can’t perform that action at this time.
0 commit comments