bugs corrections

This commit is contained in:
Simon Vieille 2015-02-15 21:37:41 +01:00
parent 87f4467b3d
commit 0627e50034
2 changed files with 3 additions and 6 deletions

View file

@ -11,16 +11,14 @@
"email": "simon+github@deblan.fr" "email": "simon+github@deblan.fr"
} }
], ],
"require": {
"php": ">=5.5",
"symfony/process": "~2.6"
},
"autoload": { "autoload": {
"psr-0": { "psr-0": {
"": "src/" "": "src/"
} }
}, },
"require": { "require": {
"php": ">=5.5",
"symfony/process": "~2.6",
"symfony/console": "2.*", "symfony/console": "2.*",
"psr/log": "1.0.0", "psr/log": "1.0.0",
"symfony/finder": "~2.6", "symfony/finder": "~2.6",

View file

@ -27,9 +27,8 @@ class Application extends BaseApplication
public function loadCommands() public function loadCommands()
{ {
$finder = new Finder();
foreach ($this->commandsPaths as $path => $namespace) { foreach ($this->commandsPaths as $path => $namespace) {
$finder = new Finder();
$finder->files('*Command.php')->in($path); $finder->files('*Command.php')->in($path);
foreach ($finder as $file) { foreach ($finder as $file) {