public function __construct(array $options = array()) { $this->options = $options; $this->dispatcher = new EventDispatcher(); $this->addExtension(new CoreExtension()); }