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

use Hal\DependencyInjection\DependencyInjectionProcessor;

define('PHPMETRICS_ROOT', dirname(__DIR__));

if (!is_file(PHPMETRICS_ROOT . '/vendor/autoload.php')) {
    die(
        'You must set up the project dependencies, run the following commands:' . PHP_EOL .
        'curl -s http://getcomposer.org/installer | php' . PHP_EOL .
        'php composer.phar install' . PHP_EOL
    );
}
require_once PHPMETRICS_ROOT . '/vendor/autoload.php';

// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
// PLEASE do not edit this file without editing artifacts/phar/build.php
// PLEASE do not edit this file without editing artifacts/phar/build.php
// PLEASE do not edit this file without editing artifacts/phar/build.php
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

exit((new DependencyInjectionProcessor())->load($argv)->run());
