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

/**
 * Management Console for Contao Open Source CMS
 *
 * Copyright (C) 2013 Tristan Lins
 *
 * PHP version 5
 *
 * @copyright  bit3 UG 2013
 * @author     Tristan Lins <tristan.lins@bit3.de>
 * @package    contao-management-console
 * @license    LGPL-3.0+
 * @filesource
 */

if (is_file($autoloadFile = (__DIR__ . '/../vendor/autoload.php'))) {
	require_once($autoloadFile);
}
else if (is_file($autoloadFile = (__DIR__ . '/../../../../vendor/autoload.php'))) {
	require_once($autoloadFile);
}
else {
	echo ('could not find autoload.php');
	exit(1);
}

use Symfony\Component\Console\Application;
use ContaoManagementConsole\Console\Command\BundlerPackCommand;
use ContaoManagementConsole\Console\Command\StatusCommand;

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