public function onBoot(BootEvent $event) { $helper = $event->getApplication()->getServices()->get($this->serviceName); if (!$helper instanceof ViewHelperService) { throw new Exception('Service is not a ViewHelperService'); } $event->getApplication()->notify(new ViewHelperLoadedEvent($helper, array(), $event->getApplication(), $event->getContext())); }
public function onBoot(BootEvent $event) { $event->getApplication()->notify(new ResultTypeServiceLoadedEvent($event->getApplication()->getServices()->get($this->serviceName), array(), $event->getApplication(), $event->getContext())); }
public function onBoot(BootEvent $event) { $event->getApplication()->notify(new DescriptorLoadedEvent($this->descriptor, array(), $event->getApplication(), $event->getContext())); }