Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1.008 |
Changes | 0 |
1 | <?php |
||
24 | 5 | public function init() |
|
25 | { |
||
26 | 5 | parent::init(); |
|
27 | |||
28 | 5 | self::$plugin = $this; |
|
29 | |||
30 | 5 | $this->cpTrigger = \Craft::$app->getConfig()->getGeneral()->cpTrigger; |
|
31 | |||
32 | Event::on(UrlManager::class, UrlManager::EVENT_REGISTER_SITE_URL_RULES, function(RegisterUrlRulesEvent $event) |
||
33 | { |
||
34 | $event->rules = \array_merge($event->rules, $this->getSiteUrlRules()); |
||
35 | 5 | }); |
|
82 | } |