Exemplo n.º 1
0
 protected function process($file, ProcessorList $list)
 {
     $processor = $list->get($file);
     $result = $processor->process($file);
     $this->addMimeType($processor->getOutputMimeType());
     $this->setLastModified($processor->getLastModified($file));
     $this->addAllFiles($processor->getFiles($file));
     return $result;
 }
Exemplo n.º 2
0
 /**
  * @test
  * @expectedException \LogicException
  */
 public function process_fail()
 {
     $processor = new DummyProcessor();
     $this->target->add($processor);
     $this->target->process('example.' . DummyProcessor::EXTENSION, 'some-js-content');
 }
Exemplo n.º 3
0
 /**
  * @param Processor|string $compiler
  */
 public function add($compiler)
 {
     $instance = $this->getInstance($compiler);
     $this->compiler->add($instance);
 }