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

use ExtensionsFinder\Command\ExtensionsFinderCommand;
use Symfony\Component\Console\Application;

$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 -s https://getcomposer.org/installer | php' . PHP_EOL .
        'php composer.phar install' . PHP_EOL
    );
}

$application = new Application();
$application->add(new ExtensionsFinderCommand());
$application->run();
