public function callInitialize()
    {
        foreach ($this->pluginCollection as $plugin) {
            $subscriber = new EventSubscriber();
            $plugin->initialize($subscriber);

            $this->eventSubscriberPlugins[] = [$plugin, $subscriber];

            $this->addListeners($plugin, $subscriber);
        }
    }
public function callInitialize()
    {
        foreach ($this->pluginCollection as $plugin) {
            $subscriber = new EventSubscriber();
            $plugin->initialize($subscriber);

            $this->eventSubscriberPlugins[] = [$plugin, $subscriber];

            $this->addListeners($plugin, $subscriber);
        }
    }
public function callInitialize ( ) { foreach ( $ this -> pluginCollection as $ plugin ) { $ subscriber = new EventSubscriber ( ) ; $ plugin -> initialize ( $ subscriber ) ; $ this -> eventSubscriberPlugins [ ] = [ $ plugin , $ subscriber ] ; $ this -> addListeners ( $ plugin , $ subscriber ) ; } }
Invokes initialize method for each plugin registered.
Invokes initialize method for each plugin registered .