@@ -18,7 +18,6 @@ |
||
| 18 | 18 | |
| 19 | 19 | use Nette; |
| 20 | 20 | use Nette\DI; |
| 21 | - |
|
| 22 | 21 | use IPub\Packages; |
| 23 | 22 | use IPub\Packages\Commands; |
| 24 | 23 | use IPub\Packages\Helpers; |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | * @date 27.05.16 |
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | -declare(strict_types = 1); |
|
| 15 | +declare(strict_types=1); |
|
| 16 | 16 | |
| 17 | 17 | namespace IPub\Packages\DI; |
| 18 | 18 | |
@@ -41,13 +41,13 @@ discard block |
||
| 41 | 41 | * @var array |
| 42 | 42 | */ |
| 43 | 43 | private $defaults = [ |
| 44 | - 'path' => NULL, // Paths where to search for packages |
|
| 45 | - 'dirs' => [ // Define path to folders |
|
| 46 | - 'configDir' => '%appDir%/config', // Path where is stored app configuration |
|
| 47 | - 'vendorDir' => '%appDir%/../vendor', // Path to composer vendor folder |
|
| 48 | - 'tempDir' => '%tempDir%', // Path to temporary folder |
|
| 44 | + 'path' => NULL, // Paths where to search for packages |
|
| 45 | + 'dirs' => [// Define path to folders |
|
| 46 | + 'configDir' => '%appDir%/config', // Path where is stored app configuration |
|
| 47 | + 'vendorDir' => '%appDir%/../vendor', // Path to composer vendor folder |
|
| 48 | + 'tempDir' => '%tempDir%', // Path to temporary folder |
|
| 49 | 49 | ], |
| 50 | - 'configFile' => 'config.neon', // Filename with enabled packages extensions |
|
| 50 | + 'configFile' => 'config.neon', // Filename with enabled packages extensions |
|
| 51 | 51 | 'loader' => [ |
| 52 | 52 | 'packageFiles' => [ |
| 53 | 53 | 'package.php', |
@@ -72,8 +72,8 @@ discard block |
||
| 72 | 72 | |
| 73 | 73 | $builder->parameters['packages'] = []; |
| 74 | 74 | |
| 75 | - if (is_file($configuration['dirs']['configDir'] . DIRECTORY_SEPARATOR . 'packages.php')) { |
|
| 76 | - $packages = require $configuration['dirs']['configDir'] . DIRECTORY_SEPARATOR . 'packages.php'; |
|
| 75 | + if (is_file($configuration['dirs']['configDir'].DIRECTORY_SEPARATOR.'packages.php')) { |
|
| 76 | + $packages = require $configuration['dirs']['configDir'].DIRECTORY_SEPARATOR.'packages.php'; |
|
| 77 | 77 | |
| 78 | 78 | foreach ($packages as $name => $data) { |
| 79 | 79 | $builder->parameters['packages'][$name] = $data; |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | ]; |
| 133 | 133 | |
| 134 | 134 | foreach ($commands as $name => $cmd) { |
| 135 | - $builder->addDefinition($this->prefix('commands' . lcfirst($name))) |
|
| 135 | + $builder->addDefinition($this->prefix('commands'.lcfirst($name))) |
|
| 136 | 136 | ->setType($cmd); |
| 137 | 137 | } |
| 138 | 138 | } |