Plugin   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 9
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A bootstrap() 0 4 1
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