Ejemplo n.º 1
0
 public function registerView(\Enlight_Event_EventArgs $args)
 {
     if (!$this->getSortRequestHandler()->isEnabled()) {
         return;
     }
     $this->registrationService->registerSnippets();
     $this->registrationService->registerTemplateDir();
 }
Ejemplo n.º 2
0
 /**
  * @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');
 }