/** * Initialize. * * This method is called when the plugin is registered to a client instance * * @param Client $client * @param array $options */ public function initPlugin($client, $options) { $this->client = $client; parent::__construct($options); $this->initPluginType(); }
/** * Constructor. * * If options are passed they will be merged with {@link $options} using * the {@link setOptions()} method. * * If an EventDispatcher instance is provided this will be used instead of creating a new instance * * @param array|\Zend_Config $options * @param EventDispatcher $eventDispatcher */ public function __construct($options = null, $eventDispatcher = null) { $this->eventDispatcher = $eventDispatcher; parent::__construct($options); }