Dingo\Api\Routing\Route::findControllerPropertyOptions PHP Method

findControllerPropertyOptions() protected method

Find the controller options and whether or not it will apply to this routes controller method.
protected findControllerPropertyOptions ( string $name ) : array
$name string
return array
    protected function findControllerPropertyOptions($name)
    {
        $properties = [];
        foreach ($this->getControllerInstance()->{'get' . ucfirst($name)}() as $property) {
            if (isset($property['options']) && !$this->optionsApplyToControllerMethod($property['options'])) {
                continue;
            }
            unset($property['options']);
            $properties = array_merge_recursive($properties, $property);
        }
        return $properties;
    }