magallanes/bin/mage

30 lines
687 B
Plaintext
Raw Normal View History

#!/usr/bin/env php
<?php
2013-11-05 17:12:09 +01: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 12:16:06 +01:00
$baseDir = dirname(dirname(__FILE__));
2011-11-22 12:16:06 +01:00
2013-12-18 00:31:04 +01:00
define('MAGALLANES_VERSION', '1.0.0');
define('MAGALLANES_DIRECTORY', $baseDir);
2011-11-22 12:16:06 +01:00
// Preload
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;
$console->run($argv);