Skip to content

The only tool you need to know what is happening and how to fix it.

577 B
Raw Blame
#!/usr/bin/env php
<?php

use App\Kernel;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Dotenv\Dotenv;

require dirname(__DIR__) . '/vendor/autoload.php';

(new Dotenv())->loadEnv(dirname(__DIR__) . '/.env');
\OpenTelemetry\SDK\SdkAutoloader::autoload();

$input = new ArgvInput();
$kernel = new Kernel(
    $input->getParameterOption(['--env', '-e'], $_SERVER['APP_ENV'] ?? 'dev'),
    (bool) ($_SERVER['APP_DEBUG'] ?? true)
);

$application = new Application($kernel);
$application->run($input);