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

Plugin::bootstrap()   A

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
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
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