Plugin::bootstrap()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 4
rs 10
1
<?php
2
declare(strict_types=1);
3
4
/**
5
 * Chatlas BEdita plugin
6
 *
7
 * Copyright 2023 Atlas Srl
8
 */
9
namespace BEdita\Chatlas;
10
11
use BEdita\Chatlas\Event\ChatlasEventHandler;
12
use Cake\Core\BasePlugin;
13
use Cake\Core\PluginApplicationInterface;
14
use Cake\Event\EventManager;
15
16
/**
17
 * Plugin for BEdita Chatlas
18
 */
19
class Plugin extends BasePlugin
20
{
21
    /**
22
     * @inheritDoc
23
     */
24
    public function bootstrap(PluginApplicationInterface $app): void
25
    {
26
        parent::bootstrap($app);
27
        EventManager::instance()->on(new ChatlasEventHandler());
28
    }
29
}
30