public function registerView(\Enlight_Event_EventArgs $args) { if (!$this->getSortRequestHandler()->isEnabled()) { return; } $this->registrationService->registerSnippets(); $this->registrationService->registerTemplateDir(); }
/** * @param \Enlight_Event_EventArgs $args * * @return string * @Enlight\Event Enlight_Controller_Dispatcher_ControllerPath_Backend_SwagDefaultSortCategory */ public function onGetControllerCategoryPathBackend(\Enlight_Event_EventArgs $args) { $this->registrationService->registerTemplateDir(); $this->registrationService->registerSnippets(); return $this->registrationService->getBackendControllerPath('SwagDefaultSortCategory'); }