mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-08-29 10:38:57 +02:00
Big refactoring. Use of Namespaces and codestyles. PSR-0, PSR-1, PSR-2.
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
namespace Mage\Command\BuiltIn;
|
||||
|
||||
use Mage\Command\AbstractCommand;
|
||||
use Mage\Console;
|
||||
use Mage\Compiler;
|
||||
|
||||
use Exception;
|
||||
|
||||
/**
|
||||
* Command for Compile Magallanes into a PHAR executable
|
||||
*
|
||||
* @author Ismael Ambrosi<ismaambrosi@gmail.com>
|
||||
*/
|
||||
class CompileCommand extends AbstractCommand
|
||||
{
|
||||
/**
|
||||
* @see \Mage\Compile::compile()
|
||||
*/
|
||||
public function run ()
|
||||
{
|
||||
Console::output('Compiling <dark_gray>Magallanes</dark_gray>... ', 1, 0);
|
||||
|
||||
$compiler = new Compiler;
|
||||
$compiler->compile();
|
||||
|
||||
Console::output('Mage compiled successfully');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user