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

declare(strict_types=1);

namespace hanneskod\readmetester;

foreach ([__DIR__ . '/../vendor/autoload.php', __DIR__ . '/../../../autoload.php'] as $file) {
    if (file_exists($file)) {
        require_once $file;
        break;
    }
}

if (!class_exists(ProjectServiceContainer::class)) {
    die("Unable to find autoloader. Did you install dependencies using composer install?\n");
}

(new ProjectServiceContainer)->get('application')->run();
