limingxinleo / x-phalcon-console
Installs: 3 224
Dependents: 1
Suggesters: 0
Security: 0
Stars: 4
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=5.6
- ext-phalcon: ^3.0
- symfony/finder: ^3.3
Requires (Dev)
- phalcon/dd: ^1.1
- phpunit/phpunit: >=5.6
This package is auto-updated.
Last update: 2024-10-17 19:39:50 UTC
README
安装
composer require limingxinleo/x-phalcon-console
使用
<?php use Xin\Phalcon\Cli\XConsole; use Phalcon\DI\FactoryDefault\Cli; // Your Method To Get DI; $di = new Cli(); $di->setShared('dispatcher', function () { $dispatcher = new \Phalcon\Cli\Dispatcher(); // Your Default Namespace $dispatcher->setDefaultNamespace('App\\Tasks'); return $dispatcher; }); $xconsole = new XConsole($di); $xconsole->handle($argv);