mirror of
https://github.com/yiisoft/app.git
synced 2026-02-20 01:21:20 +01:00
19 lines
410 B
PHP
Executable File
19 lines
410 B
PHP
Executable File
#!/usr/bin/env php
|
|
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use App\Environment;
|
|
use Yiisoft\Yii\Runner\Console\ConsoleApplicationRunner;
|
|
|
|
require_once __DIR__ . '/src/autoload.php';
|
|
|
|
// Run console application runner
|
|
$runner = new ConsoleApplicationRunner(
|
|
rootPath: __DIR__,
|
|
debug: Environment::appDebug(),
|
|
checkEvents: Environment::appDebug(),
|
|
environment: Environment::appEnv(),
|
|
);
|
|
$runner->run();
|