Issues (14)

src/runner.php (2 issues)

Labels
Severity
1
<?php
2
3
namespace BfwSql;
4
5
$moduleConfig = $this->getConfig();
6
$usedClass    = \BfwSql\UsedClass::getInstance($moduleConfig);
7
8
\BFW\Helpers\Constants::create('MODELS_DIR', SRC_DIR.'models/');
0 ignored issues
show
The constant BfwSql\SRC_DIR was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
9
\BFW\Application::getInstance()
10
    ->getComposerLoader()
11
    ->addPsr4('Models\\', MODELS_DIR)
0 ignored issues
show
The constant BfwSql\MODELS_DIR was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
12
;
13
14
$runnerClasses = [
15
    $usedClass->obtainClassNameToUse('RunnerMonolog'),
16
    $usedClass->obtainClassNameToUse('RunnerObservers'),
17
    $usedClass->obtainClassNameToUse('RunnerConnectDB')
18
];
19
20
foreach ($runnerClasses as $runnerClassName) {
21
    $runner = new $runnerClassName($this);
22
    $runner->run();
23
}
24