Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 19 lines (13 sloc) 505 Bytes
#!/usr/bin/env php
<?php
use Ouzo\Console\CommandsLoader;
use Ouzo\Utilities\Files;
use Ouzo\Utilities\Path;
use Symfony\Component\Console\Application;
putenv('environment=prod');
define('ROOT_PATH', realpath(dirname(__FILE__)) . DIRECTORY_SEPARATOR);
require 'vendor/autoload.php';
Files::loadIfExists(ROOT_PATH . 'test/Application/config/routes.php');
$app = new Application();
CommandsLoader::forApplication($app)->registerCommandsFromPath(Path::join(ROOT_PATH, "bin"), "\\Command");
$app->run();