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

// Copied from: https://github.com/cakephp/phinx/blob/master/app/phinx.php
$autoloader = require __DIR__ . '/../src/composer_autoloader.php';

if (!$autoloader()) {
    die(
        'You need to set up the project dependencies using the following commands:' . PHP_EOL .
        'curl -sS https://getcomposer.org/installer | php' . PHP_EOL .
        'php composer.phar install' . PHP_EOL
    );
}

// start the console app
$app = new \PrettyPhinx\Console\PrettyPhinxApplication();
$app->run();
