コード例 #1
0
 /**
  * {@inheritDoc}
  */
 public function handle(MassActionHandlerArgs $args)
 {
     $limitResult = $this->limiter->getLimitResult($args);
     $method = $this->requestStack->getMasterRequest()->getMethod();
     if ($method === 'POST') {
         $result = $this->getPostResponse($limitResult);
     } elseif ($method === 'DELETE') {
         $this->limiter->limitQuery($limitResult, $args);
         $result = $this->doDelete($args);
     } else {
         $result = $this->getNotSupportedResponse($method);
     }
     return $result;
 }