transmission client

This commit is contained in:
Simon Vieille 2015-02-15 21:35:44 +01:00
parent 87f4467b3d
commit 7be9358f75
3 changed files with 6 additions and 7 deletions

View file

@ -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"
} }
} }

View file

@ -9,5 +9,6 @@ $app = new Application();
$app $app
->chdir(__DIR__) ->chdir(__DIR__)
->addCommandsPath('src/Transmission/Command', 'Transmission\\Command')
->loadCommands() ->loadCommands()
->run(); ->run();

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) {