@@ -225,7 +225,7 @@ |
||
| 225 | 225 | } |
| 226 | 226 | |
| 227 | 227 | /** |
| 228 | - * @param null $sProfile |
|
| 228 | + * @param string $sProfile |
|
| 229 | 229 | * @return array|mixed |
| 230 | 230 | */ |
| 231 | 231 | private function loadConfigFile($sProfile = null) |
@@ -9,8 +9,6 @@ |
||
| 9 | 9 | |
| 10 | 10 | namespace Chapi\Commands; |
| 11 | 11 | |
| 12 | -use Chapi\Component\DependencyInjection\Loader\YamChapiConfigLoader; |
|
| 13 | -use Symfony\Component\Config\FileLocator; |
|
| 14 | 12 | use Symfony\Component\Console\Input\InputInterface; |
| 15 | 13 | use Symfony\Component\Console\Input\InputOption; |
| 16 | 14 | use Symfony\Component\Console\Output\OutputInterface; |
@@ -26,6 +26,8 @@ |
||
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | 28 | * @inheritdoc |
| 29 | + * @param string $sResource |
|
| 30 | + * @param string $sProfile |
|
| 29 | 31 | */ |
| 30 | 32 | public function loadProfileParameters($sResource, $sProfile) |
| 31 | 33 | { |
@@ -101,7 +101,7 @@ |
||
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | if (!$this->container->hasExtension($namespace)) { |
| 104 | - $extensionNamespaces = array_filter(array_map(function ($ext) { return $ext->getAlias(); }, $this->container->getExtensions())); |
|
| 104 | + $extensionNamespaces = array_filter(array_map(function($ext) { return $ext->getAlias(); }, $this->container->getExtensions())); |
|
| 105 | 105 | throw new InvalidArgumentException(sprintf( |
| 106 | 106 | 'There is no extension able to load the configuration for "%s" (in %s). Looked for namespace "%s", found %s', |
| 107 | 107 | $namespace, |