Dingo\Api\Routing\Route::optionsApplyToControllerMethod PHP Метод

optionsApplyToControllerMethod() защищенный Метод

Determine if a controller method is in an array of options.
protected optionsApplyToControllerMethod ( array $options ) : boolean
$options array
Результат boolean
    protected function optionsApplyToControllerMethod(array $options)
    {
        if (empty($options)) {
            return true;
        } elseif (isset($options['only']) && in_array($this->controllerMethod, $this->explodeOnPipes($options['only']))) {
            return true;
        } elseif (isset($options['except'])) {
            return !in_array($this->controllerMethod, $this->explodeOnPipes($options['except']));
        } elseif (in_array($this->controllerMethod, $this->explodeOnPipes($options))) {
            return true;
        }
        return false;
    }