bulton-fr /
bfw-cli
| 1 | <?php |
||
| 2 | |||
| 3 | $this->monolog = new \BFW\Monolog( |
||
| 4 | 'bfw-cli', |
||
| 5 | \BFW\Application::getInstance()->getConfig() |
||
| 6 | ); |
||
| 7 | $this->monolog->addAllHandlers(); |
||
| 8 | |||
| 9 | $bfwCli = new \BfwCli\BfwCli($this); |
||
| 10 | |||
| 11 | $app = \BFW\Application::getInstance(); |
||
| 12 | $appSubject = $app->getSubjectList()->getSubjectByName('ctrlRouterLink'); |
||
| 13 | $appSubject->attach($bfwCli); |
||
| 14 | |||
| 15 | $this->monolog |
||
| 16 | ->getLogger() |
||
| 17 | ->debug('Add CLI_DIR constant and \Cli namespace.'); |
||
| 18 | |||
| 19 | \BFW\Helpers\Constants::create('CLI_DIR', SRC_DIR.'cli/'); |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 20 | $app->getComposerLoader()->addPsr4('Cli\\', CLI_DIR); |
||
|
0 ignored issues
–
show
|
|||
| 21 |