Set compiler by setter for better testability

This commit is contained in:
Jakub Turek
2015-03-08 21:21:48 +01:00
parent e9ec99f318
commit d58e89c41d
2 changed files with 66 additions and 0 deletions
+15
View File
@@ -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()
*/