Issues (8)

src/runner.php (2 issues)

Labels
Severity
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
The constant SRC_DIR was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
20
$app->getComposerLoader()->addPsr4('Cli\\', CLI_DIR);
0 ignored issues
show
The constant CLI_DIR was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
21