Completed
Push — master ( 86928f...ccdb85 )
by Nikita
06:11
created

RebuildSettingsSubscriber   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 22
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSubscribedEvents() 0 8 1
A rebuildSettings() 0 4 1
1
<?php
2
3
namespace Taisiya\CoreBundle\Event;
4
5
use Taisiya\CoreBundle\Event\Composer\CommandEvent;
6
7
class RebuildSettingsSubscriber implements EventSubscriberInterface
8
{
9
    /**
10
     * {@inheritdoc}
11
     */
12
    public static function getSubscribedEvents()
13
    {
14
        return [
15
            CommandEvent::NAME => [
16
                ['rebuildSettings'],
17
            ],
18
        ];
19
    }
20
21
    /**
22
     * @param CommandEvent $event
23
     */
24
    public function rebuildSettings(CommandEvent $event): void
25
    {
26
        var_dump($event);
0 ignored issues
show
Security Debugging Code introduced by
var_dump($event); looks like debug code. Are you sure you do not want to remove it? This might expose sensitive data.
Loading history...
27
    }
28
}
29