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

$standaloneAutoloadPath = dirname(__DIR__).'/vendor/autoload.php';
$dependencyAutoloadPath = __DIR__.'/../../../autoload.php';

if (is_file($standaloneAutoloadPath)) {
    require $standaloneAutoloadPath;
} elseif (is_file($dependencyAutoloadPath)) {
    require $dependencyAutoloadPath;
} else {
    throw new LogicException(sprintf(
        "No autoloader found at '%s'. Try installing Composer dependencies?",
        $standaloneAutoloadPath
    ));
}

Eloquent\Asplode\Asplode::instance()->install();

$application = new Eloquent\Typhoon\Console\Application;
$application->run();
