1 | <?php |
||
20 | final class ChangeCodingStandardEventSubscriber implements EventSubscriberInterface |
||
21 | { |
||
22 | |||
23 | /** |
||
24 | * @var Configuration |
||
25 | */ |
||
26 | private $configuration; |
||
27 | |||
28 | /** |
||
29 | * @var CodeStyleInterface |
||
30 | */ |
||
31 | private $codeStyle; |
||
32 | |||
33 | |||
34 | 6 | public function __construct(Configuration $configuration, CodeStyleInterface $codeStyle) |
|
35 | { |
||
36 | 6 | $this->codeStyle = $codeStyle; |
|
37 | 6 | $this->configuration = $configuration; |
|
38 | 6 | } |
|
39 | |||
40 | |||
41 | 2 | public static function getSubscribedEvents() : array |
|
45 | |||
46 | |||
47 | 6 | public function applyCodingStyle(ConsoleTerminateEvent $event) |
|
59 | |||
60 | |||
61 | 6 | private function isAllowedCommand(string $name) : bool |
|
65 | |||
66 | |||
67 | 2 | private function getCurrentMigrationFileName() : string |
|
80 | |||
81 | |||
82 | 2 | private function getCurrentVersionName() : string |
|
86 | |||
87 | |||
88 | 2 | private function getMigrationFileByVersion(string $version) : string |
|
93 | |||
94 | } |
||
95 |