forked from deblan/t411-console
transmission client
This commit is contained in:
parent
87f4467b3d
commit
7be9358f75
|
@ -11,21 +11,20 @@
|
||||||
"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",
|
||||||
"symfony/yaml": "~2.6",
|
"symfony/yaml": "~2.6",
|
||||||
"symfony/filesystem": "3.0.x-dev",
|
"symfony/filesystem": "3.0.x-dev",
|
||||||
"guzzlehttp/guzzle": "~5.2"
|
"guzzlehttp/guzzle": "~5.2",
|
||||||
|
"vohof/transmission": "~1.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
1
console
1
console
|
@ -9,5 +9,6 @@ $app = new Application();
|
||||||
|
|
||||||
$app
|
$app
|
||||||
->chdir(__DIR__)
|
->chdir(__DIR__)
|
||||||
|
->addCommandsPath('src/Transmission/Command', 'Transmission\\Command')
|
||||||
->loadCommands()
|
->loadCommands()
|
||||||
->run();
|
->run();
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue