<?php

declare(strict_types=1);

define('FCPATH', __DIR__ . DIRECTORY_SEPARATOR . 'public' . DIRECTORY_SEPARATOR);

$pathsConfig = FCPATH . '../app/Config/Paths.php';
require $pathsConfig;

$paths = new Config\Paths();

require rtrim($paths->systemDirectory, '\\/ ') . '/bootstrap.php';

use CodeIgniter\CLI\Console;

$app = new \CodeIgniter\CodeIgniter(new \Config\App());
$app->initialize();

$console = new Console();
$console->run();
