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

/*
|--------------------------------------------------------------------------
| Require Composer's autoloader
|--------------------------------------------------------------------------
|
*/
foreach ([__DIR__ . '/../../../', __DIR__ . '/../vendor/', __DIR__ . '/vendor/'] as $dir) {
    if (file_exists($file = $dir.'autoload.php')) {
        require $file;
        break;
    }
}

/*
|--------------------------------------------------------------------------
| Create the Application
|--------------------------------------------------------------------------
|
*/

$arty = new Gckabir\Arty\Application();

/*
|--------------------------------------------------------------------------
| Configure the Application and Run
|--------------------------------------------------------------------------
| Auto detects the configuration file from a Yaml file(.arty.yml) or 
| a PHP file (config/arty.php)
| 
*/

$arty->autodetectConfig()->run();
