#!/usr/bin/env php
<?php declare(strict_types=1);

use Heptacom\ValetDrivers\Kernel;

function includeIfExists(string $file): bool
{
    return file_exists($file) && include $file;
}

if (!includeIfExists(__DIR__ . '/../vendor/autoload.php') &&
	!includeIfExists(__DIR__ . '/../../../vendor/autoload.php') &&
	!includeIfExists(__DIR__ . '/../../../../vendor/autoload.php')) {
    echo 'Install dependencies using Composer.' . PHP_EOL;

    exit(1);
}

set_time_limit(0);

Kernel::setup();
