Example #1
0
 /**
  * Initialize the Context with the same event emitter as the Environment.
  *
  * @param EventEmitterInterface $emitter
  */
 protected function initializeContext(EventEmitterInterface $emitter)
 {
     $this->context = Context::getInstance();
     $this->context->setEventEmitter($emitter);
 }