@@ -49,13 +49,13 @@ discard block |
||
| 49 | 49 | * @var array |
| 50 | 50 | */ |
| 51 | 51 | private $defaults = [ |
| 52 | - 'path' => NULL, // Paths where to search for packages |
|
| 53 | - 'dirs' => [ // Define path to folders |
|
| 54 | - 'configDir' => '%appDir%/config', // Path where is stored app configuration |
|
| 55 | - 'vendorDir' => '%appDir%/../vendor', // Path to composer vendor folder |
|
| 56 | - 'tempDir' => '%tempDir%', // Path to temporary folder |
|
| 52 | + 'path' => NULL, // Paths where to search for packages |
|
| 53 | + 'dirs' => [// Define path to folders |
|
| 54 | + 'configDir' => '%appDir%/config', // Path where is stored app configuration |
|
| 55 | + 'vendorDir' => '%appDir%/../vendor', // Path to composer vendor folder |
|
| 56 | + 'tempDir' => '%tempDir%', // Path to temporary folder |
|
| 57 | 57 | ], |
| 58 | - 'configFile' => 'config.neon', // Filename with enabled packages extensions |
|
| 58 | + 'configFile' => 'config.neon', // Filename with enabled packages extensions |
|
| 59 | 59 | 'loader' => [ |
| 60 | 60 | 'packageFiles' => [ |
| 61 | 61 | 'package.php', |
@@ -82,8 +82,8 @@ discard block |
||
| 82 | 82 | |
| 83 | 83 | $builder->parameters['packages'] = []; |
| 84 | 84 | |
| 85 | - if (is_file($configuration['dirs']['configDir'] . DIRECTORY_SEPARATOR . 'packages.php')) { |
|
| 86 | - $packages = require $configuration['dirs']['configDir'] . DIRECTORY_SEPARATOR . 'packages.php'; |
|
| 85 | + if (is_file($configuration['dirs']['configDir'].DIRECTORY_SEPARATOR.'packages.php')) { |
|
| 86 | + $packages = require $configuration['dirs']['configDir'].DIRECTORY_SEPARATOR.'packages.php'; |
|
| 87 | 87 | |
| 88 | 88 | foreach ($packages as $name => $data) { |
| 89 | 89 | $builder->parameters['packages'][$name] = $data; |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | ]; |
| 143 | 143 | |
| 144 | 144 | foreach ($commands as $name => $cmd) { |
| 145 | - $builder->addDefinition($this->prefix('commands' . lcfirst($name))) |
|
| 145 | + $builder->addDefinition($this->prefix('commands'.lcfirst($name))) |
|
| 146 | 146 | ->setType($cmd) |
| 147 | 147 | ->addTag(Console\DI\ConsoleExtension::TAG_COMMAND); |
| 148 | 148 | } |