mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-09-05 17:08:56 +02:00
Set compiler by setter for better testability
This commit is contained in:
@@ -21,6 +21,21 @@ use Mage\Compiler;
|
||||
*/
|
||||
class CompileCommand extends AbstractCommand
|
||||
{
|
||||
/**
|
||||
* @var Compiler
|
||||
*/
|
||||
private $compiler;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->compiler = new Compiler();
|
||||
}
|
||||
|
||||
public function setCompiler(Compiler $compiler)
|
||||
{
|
||||
$this->compiler = $compiler;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \Mage\Compile::compile()
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user