Example #1
0
 public function __construct(Filesystem $sources, Configuration $reader, Finder $finder, FormatterProvider $formatterProvider = null)
 {
     $this->logger = new NullLogger();
     $this->sources = $sources;
     $this->reader = $reader;
     $this->finder = $finder;
     $this->suffix = Application::DEFAULT_DISTFILE_SUFFIX;
     $this->dryRun = false;
     $this->enableBackup = false;
     $this->formatterProvider = $formatterProvider;
     if ($this->formatterProvider === null) {
         $this->formatterProvider = new NullProvider();
     }
     $this->currentFormatterName = null;
     $this->currentTargetFile = null;
     $this->systemEnvironment = null;
     $this->unusedVariables = array_flip($reader->getAllVariables());
     $this->unvaluedVariables = array();
 }