Exemplo n.º 1
0
 /**
  * @param string $action
  *
  * @return array|\Symfony\Component\HttpFoundation\JsonResponse|\Symfony\Component\HttpFoundation\RedirectResponse
  * @throws \ACP3\Core\Controller\Exception\ResultNotExistsException
  */
 public function execute($action = '')
 {
     return $this->actionHelper->handleDeleteAction($action, function (array $items) {
         $result = $this->categoriesModel->delete($items);
         $this->categoriesCache->getCacheDriver()->deleteAll();
         return $result;
     });
 }