#!/usr/bin/env php
<?php

declare(strict_types=1);

/*
 * This file is part of Contao.
 *
 * (c) Leo Feyer
 *
 * @license LGPL-3.0-or-later
 */

use Contao\ManagerBundle\Api\Application;

error_reporting(-1);
set_time_limit(0);
@ini_set('display_startup_errors', '1');
@ini_set('display_errors', '1');
@ini_set('zlib.output_compression', '0');

if (file_exists(__DIR__.'/../../../../autoload.php')) {
    $projectDir = \dirname(__DIR__, 5);
} else {
    $projectDir = \dirname(__DIR__, 4);
}

require $projectDir.'/vendor/autoload.php';

$application = new Application($projectDir);
$application->run();
