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

declare(strict_types=1);

$possibleAutoloadPaths = [
    __DIR__ . '/../vendor/autoload.php',
    __DIR__ . '/../../../autoload.php',
];

foreach ($possibleAutoloadPaths as $possibleAutoloadPath) {
    if (file_exists($possibleAutoloadPath)) {
        require_once $possibleAutoloadPath;
        break;
    }
}

use Gingdev\Facebook\Command\LoginCommand;
use Gingdev\Facebook\Command\ShieldCommand;
use Symfony\Component\Console\Application;

$application = new Application();

$application->add(new LoginCommand());
$application->add(new ShieldCommand());

$application->run();
