/**
  * Initializes the command with all necessary dependencies to construct human-suitable output from the AST.
  *
  * @param ProjectDescriptorBuilder $builder
  * @param Transformer              $transformer
  * @param Compiler                 $compiler
  */
 public function __construct(ProjectDescriptorBuilder $builder, Transformer $transformer, Compiler $compiler)
 {
     parent::__construct('project:transform');
     $this->builder = $builder;
     $this->transformer = $transformer;
     $this->compiler = $compiler;
 }
Example #2
0
 public function __construct($builder, $parser, $translator, $files)
 {
     $this->builder = $builder;
     $this->parser = $parser;
     $this->translator = $translator;
     $this->files = $files;
     parent::__construct('project:parse');
 }
 /**
  * Initializes this command with a template and converter factory.
  *
  * @param string           $name
  * @param Factory          $templateFactory
  * @param ConverterFactory $converterFactory
  */
 public function __construct($name, Factory $templateFactory, ConverterFactory $converterFactory)
 {
     parent::__construct($name);
     $this->templateFactory = $templateFactory;
     $this->converterFactory = $converterFactory;
 }