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

use Psr\Container\ContainerInterface;
use Symfony\Component\Console\Application;

$autoloadPaths = array(
    __DIR__ . '/../../../bootstrap.php',
    __DIR__ . '/../bootstrap.php',
    __DIR__ . '/bootstrap.php'
);
foreach ($autoloadPaths as $autoloadFile) {
    if (file_exists($autoloadFile)) {
        require_once $autoloadFile;
        break;
    }
}

$application = new Application();
/** @var ContainerInterface $container */
$application->addCommands([
    $container->get(\EnjoysCMS\Module\Catalog\Console\CurrencyRate::class),
]);
$application->run();
