Esempio n. 1
0
 /**
  * {@inheritdoc}
  */
 public function isRoutable(ReflectionMethod $method)
 {
     if (in_array($method->name, $this->unroutable)) {
         return false;
     }
     return parent::isRoutable($method);
 }
Esempio n. 2
0
 /**
  * Determine if the given controller method is routable.
  *
  * @param \ReflectionMethod $method
  * @param string            $controller
  *
  * @return bool
  */
 public function isRoutable(ReflectionMethod $method, $controller = null)
 {
     if ($method->name == 'getProperties') {
         return false;
     }
     return parent::isRoutable($method, $controller);
 }
 /**
  * Determine if the given controller method is routable.
  *
  * @param  ReflectionMethod  $method
  * @param  string  $controller
  * @return bool
  */
 public function isRoutable(ReflectionMethod $method, $controller)
 {
     if ($method->class == 'Dingo\\Api\\Routing\\Controller') {
         return false;
     }
     return parent::isRoutable($method, $controller);
 }