Beispiel #1
0
 /**
  * Constructor.
  *
  * @param Context $context The context
  * @param Importer $importer The importer
  */
 public function __construct(Context $context, Importer $importer)
 {
     parent::__construct();
     $this->context = Context::createCopyForCompilation($context);
     $this->importer = $importer;
     $this->sequencer = new ImportSequencer(function () {
         if (!$this->isFinished) {
             return;
         }
         if ($this->error) {
             throw $this->error;
         }
     });
 }
Beispiel #2
0
 /**
  * Constructor
  *
  * @param Context $context
  */
 public function __construct(Context $context)
 {
     parent::__construct();
     $this->context = $context;
 }