Passed
Push — main ( af960c...f0a759 )
by Alberto
01:26
created

Plugin   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A bootstrap() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
/**
5
 * BEdita Brevia plugin
6
 *
7
 * Copyright 2023 Atlas Srl
8
 */
9
namespace Brevia\BEdita;
10
11
use Brevia\BEdita\Event\BreviaEventHandler;
12
use Cake\Core\BasePlugin;
13
use Cake\Core\PluginApplicationInterface;
14
use Cake\Event\EventManager;
15
16
/**
17
 * Plugin for BEdita Brevia
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 BreviaEventHandler());
28
    }
29
}
30