Passed
Pull Request — main (#3)
by Paolo
01:09
created

Plugin::bootstrap()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
namespace BEdita\ElasticSearch;
5
6
use Cake\Core\BasePlugin;
7
use Cake\Core\PluginApplicationInterface;
8
use Cake\ElasticSearch\Plugin as ElasticSearchPlugin;
9
10
/**
11
 * Plugin for BEdita ElasticSearch
12
 */
13
class Plugin extends BasePlugin
14
{
15
    /**
16
     * {@inheritDoc}
17
     *
18
     * @codeCoverageIgnore
19
     */
20
    public function bootstrap(PluginApplicationInterface $app): void
21
    {
22
        parent::bootstrap($app);
23
24
        $app->addPlugin(ElasticSearchPlugin::class);
25
    }
26
}
27