Files
Magallanes/bin/mage
T

32 lines
717 B
PHP
Raw Normal View History

#!/usr/bin/env php
<?php
2013-11-05 14:12:09 -02:00
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
date_default_timezone_set('UTC');
2011-11-22 09:16:06 -02:00
$baseDir = dirname(dirname(__FILE__));
2011-11-22 09:16:06 -02:00
2014-03-16 18:43:37 -03:00
define('MAGALLANES_VERSION', '1.0.1');
2013-12-17 21:31:04 -02:00
define('MAGALLANES_DIRECTORY', $baseDir);
2011-11-22 09:16:06 -02:00
// Preload
2014-03-16 12:29:09 -03:00
require_once $baseDir . '/Mage/Spyc.php';
require_once $baseDir . '/Mage/Autoload.php';
spl_autoload_register(array('Mage\\Autoload', 'autoload'));
// Clean arguments
array_shift($argv);
// Run Magallanes
$console = new Mage\Console;
$exitCode = $console->run($argv);
exit($exitCode);