1 | <?php |
||
18 | final class ChangeCodingStandardEventSubscriber implements EventSubscriberInterface |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * @var Configuration |
||
23 | */ |
||
24 | private $configuration; |
||
25 | |||
26 | /** |
||
27 | * @var CodeStyleInterface |
||
28 | */ |
||
29 | private $codeStyle; |
||
30 | |||
31 | |||
32 | 11 | public function __construct(Configuration $configuration, CodeStyleInterface $codeStyle) |
|
37 | |||
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | 9 | public static function getSubscribedEvents() |
|
46 | |||
47 | |||
48 | 10 | public function applyCodingStyle(ConsoleTerminateEvent $event) |
|
60 | |||
61 | |||
62 | /** |
||
63 | * @param string $name |
||
64 | * @return bool |
||
65 | */ |
||
66 | 10 | private function isAllowedCommand($name) |
|
70 | |||
71 | |||
72 | /** |
||
73 | * @return string |
||
74 | */ |
||
75 | 4 | private function getCurrentMigrationFileName() |
|
88 | |||
89 | |||
90 | /** |
||
91 | * @return string |
||
92 | */ |
||
93 | 4 | private function getCurrentVersionName() |
|
97 | |||
98 | |||
99 | /** |
||
100 | * @param string $version |
||
101 | * @return string |
||
102 | */ |
||
103 | 4 | private function getMigrationFileByVersion($version) |
|
108 | |||
109 | } |
||
110 |