public function validate() { # validate the options passed into config try { $processor = new Processor(); $options = $processor->processConfiguration($this, array('config' => $this->options)); # reset the options as they be modified by the config processor foreach ($options as $name => $value) { $this->setOption($name, $value); } parent::validate(); } catch (InvalidConfigurationException $e) { throw new CompositeException($this, $e->getMessage(), 0, $e); } return true; }
public function __construct($id, EventDispatcherInterface $event, DatasourceInterface $datasource) { parent::__construct($id, $event); $this->datasource = array(); $this->datasource = $datasource; }