anonym-php / anonym-console
AnonymFramework 控制台组件
dev-master / 1.2.x-dev
2015-09-18 15:35 UTC
Requires
- php: >=5.4.0
- anonym-php/cron: ~1.2@dev
- illuminate/container: 5.2.*
- symfony/console: 2.7.*
This package is not auto-updated.
Last update: 2024-09-14 18:25:57 UTC
README
AnonymFramework 控制台组件,如果你想知道如何使用laravel的artisan,可以查看。
为了激活自动加载,需要在composer的autoload psr 4部分添加以下内容
"Console\\" : "path"
为了使命令能够加载
namespace Console; class System { /** * Bu Kısıma eklediğiniz sınıflar birer komut olarak algılanacaktır * @var array */ protected $commands = [ ]; /** * Komutları getirir * * @return array */ public function getCommands() { return $this->commands; } /** * Komutları atar * * @param array $commands * @return System */ public function setCommands($commands) { $this->commands = $commands; return $this; } }