#!/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\Commands\LoginCommand;
use Symfony\Component\Console\Application;

$application = new Application();

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

$application->run();
