mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-09-05 17:08:56 +02:00
Remove setter from CompileCommand
Also, let the Compiler be constructed with DI or by itself
This commit is contained in:
@@ -26,13 +26,12 @@ class CompileCommand extends AbstractCommand
|
||||
*/
|
||||
private $compiler;
|
||||
|
||||
public function __construct()
|
||||
public function __construct(Compiler $compiler = null)
|
||||
{
|
||||
$this->setCompiler(new Compiler());
|
||||
}
|
||||
if ($compiler === null) {
|
||||
$compiler = new Compiler();
|
||||
}
|
||||
|
||||
public function setCompiler(Compiler $compiler)
|
||||
{
|
||||
$this->compiler = $compiler;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user