@@ -17,11 +17,14 @@ discard block |
||
| 17 | 17 | { |
| 18 | 18 | $this->info('Included directories:'); |
| 19 | 19 | $grid = $this->table(['Directory', 'Scope']); |
| 20 | - foreach ($config->getDirectories() as $directory) { |
|
| 20 | + foreach ($config->getDirectories() as $directory) |
|
| 21 | + { |
|
| 21 | 22 | $grid->addRow([\str_replace($dirs->get('root'), '', $directory), '']); |
| 22 | 23 | } |
| 23 | - foreach ($config->getScopes() as $scope => $data) { |
|
| 24 | - foreach ($data['directories'] ?? [] as $directory) { |
|
| 24 | + foreach ($config->getScopes() as $scope => $data) |
|
| 25 | + { |
|
| 26 | + foreach ($data['directories'] ?? [] as $directory) |
|
| 27 | + { |
|
| 25 | 28 | $grid->addRow([\str_replace($dirs->get('root'), '', $directory), $scope]); |
| 26 | 29 | } |
| 27 | 30 | } |
@@ -32,11 +35,14 @@ discard block |
||
| 32 | 35 | |
| 33 | 36 | $this->info('Excluded directories:'); |
| 34 | 37 | $grid = $this->table(['Directory', 'Scope']); |
| 35 | - foreach ($config->getExcludes() as $directory) { |
|
| 38 | + foreach ($config->getExcludes() as $directory) |
|
| 39 | + { |
|
| 36 | 40 | $grid->addRow([\str_replace($dirs->get('root'), '', $directory), '']); |
| 37 | 41 | } |
| 38 | - foreach ($config->getScopes() as $scope => $data) { |
|
| 39 | - foreach ($data['exclude'] ?? [] as $directory) { |
|
| 42 | + foreach ($config->getScopes() as $scope => $data) |
|
| 43 | + { |
|
| 44 | + foreach ($data['exclude'] ?? [] as $directory) |
|
| 45 | + { |
|
| 40 | 46 | $grid->addRow([\str_replace($dirs->get('root'), '', $directory), $scope]); |
| 41 | 47 | } |
| 42 | 48 | } |
@@ -66,7 +72,8 @@ discard block |
||
| 66 | 72 | $this->info( |
| 67 | 73 | \sprintf('Tokenizer cache: %s', $config->isCacheEnabled() ? '<info>enabled</>' : '<error>disabled</>'), |
| 68 | 74 | ); |
| 69 | - if (!$config->isCacheEnabled()) { |
|
| 75 | + if (!$config->isCacheEnabled()) |
|
| 76 | + { |
|
| 70 | 77 | $this->comment('To enable cache, add "TOKENIZER_CACHE_TARGETS=true" to your .env file.'); |
| 71 | 78 | $this->comment('Read more at https://spiral.dev/docs/advanced-tokenizer/#class-listeners'); |
| 72 | 79 | } |
@@ -48,23 +48,28 @@ |
||
| 48 | 48 | |
| 49 | 49 | private function configureExtensions(ConsoleBootloader $console, ContainerInterface $container): void |
| 50 | 50 | { |
| 51 | - if ($container->has(TranslatorInterface::class)) { |
|
| 51 | + if ($container->has(TranslatorInterface::class)) |
|
| 52 | + { |
|
| 52 | 53 | $this->configureTranslator($console); |
| 53 | 54 | } |
| 54 | 55 | |
| 55 | - if ($container->has(ViewsInterface::class)) { |
|
| 56 | + if ($container->has(ViewsInterface::class)) |
|
| 57 | + { |
|
| 56 | 58 | $this->configureViews($console); |
| 57 | 59 | } |
| 58 | 60 | |
| 59 | - if ($container->has(EncryptionInterface::class)) { |
|
| 61 | + if ($container->has(EncryptionInterface::class)) |
|
| 62 | + { |
|
| 60 | 63 | $this->configureEncrypter($console); |
| 61 | 64 | } |
| 62 | 65 | |
| 63 | - if ($container->has(RouterInterface::class)) { |
|
| 66 | + if ($container->has(RouterInterface::class)) |
|
| 67 | + { |
|
| 64 | 68 | $console->addCommand(Router\ListCommand::class); |
| 65 | 69 | } |
| 66 | 70 | |
| 67 | - if ($container->has(ClassesInterface::class)) { |
|
| 71 | + if ($container->has(ClassesInterface::class)) |
|
| 72 | + { |
|
| 68 | 73 | $console->addCommand(Tokenizer\InfoCommand::class); |
| 69 | 74 | } |
| 70 | 75 | } |