@@ -24,7 +24,7 @@ |
||
24 | 24 | |
25 | 25 | public function register(Container $pimple) |
26 | 26 | { |
27 | - $pimple['app'] = function (Container $pimple) { |
|
27 | + $pimple['app'] = function(Container $pimple) { |
|
28 | 28 | return $this->app; |
29 | 29 | }; |
30 | 30 | } |
@@ -46,7 +46,7 @@ |
||
46 | 46 | ->path('vendor') |
47 | 47 | ->files() |
48 | 48 | ->name('settings.default.php') |
49 | - ->filter(function (SplFileInfo $file) { |
|
49 | + ->filter(function(SplFileInfo $file) { |
|
50 | 50 | return (bool) preg_match('/\/app\/config\//', $file->getPathname()); |
51 | 51 | }); |
52 | 52 |
@@ -38,7 +38,6 @@ discard block |
||
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |
41 | - * @param TaisiyaStyle $io |
|
42 | 41 | */ |
43 | 42 | final protected function rebuildEventsSubscribersCache(InputInterface $input, OutputInterface $output): void |
44 | 43 | { |
@@ -66,7 +65,6 @@ discard block |
||
66 | 65 | } |
67 | 66 | |
68 | 67 | /** |
69 | - * @param TaisiyaStyle $io |
|
70 | 68 | */ |
71 | 69 | final protected function rebuildBundlesCache(InputInterface $input, OutputInterface $output): void |
72 | 70 | { |
@@ -94,7 +92,6 @@ discard block |
||
94 | 92 | } |
95 | 93 | |
96 | 94 | /** |
97 | - * @param TaisiyaStyle $io |
|
98 | 95 | */ |
99 | 96 | final protected function rebuildCommandsCache(InputInterface $input, OutputInterface $output): void |
100 | 97 | { |
@@ -23,8 +23,7 @@ |
||
23 | 23 | final public static function runCommandEvents(Event $event): void |
24 | 24 | { |
25 | 25 | $app = file_exists(TAISIYA_ROOT.'/bootstrap.php') |
26 | - ? require_once TAISIYA_ROOT.'/bootstrap.php' : |
|
27 | - new App(['settings' => require_once TAISIYA_ROOT.'/app/config/settings.php']); |
|
26 | + ? require_once TAISIYA_ROOT.'/bootstrap.php' : new App(['settings' => require_once TAISIYA_ROOT.'/app/config/settings.php']); |
|
28 | 27 | |
29 | 28 | /** @var EventDispatcher $dispatcher */ |
30 | 29 | $dispatcher = $app->getContainer()['event_dispatcher']; |
@@ -23,11 +23,11 @@ |
||
23 | 23 | { |
24 | 24 | parent::__construct($container); |
25 | 25 | |
26 | - $this->getContainer()['event_dispatcher'] = function (Container $pimple) { |
|
26 | + $this->getContainer()['event_dispatcher'] = function(Container $pimple) { |
|
27 | 27 | return new EventDispatcher(); |
28 | 28 | }; |
29 | 29 | |
30 | - $this->getContainer()['console.output'] = function (Container $pimple) { |
|
30 | + $this->getContainer()['console.output'] = function(Container $pimple) { |
|
31 | 31 | return new ConsoleOutput(OutputInterface::VERBOSITY_VERBOSE); |
32 | 32 | }; |
33 | 33 |