public static function fromAction(array $action, $subClass = null)
    {
        $parameters = is_string($action['uses'])
                        ? static::fromClassMethodString($action['uses'])
                        : (new ReflectionFunction($action['uses']))->getParameters();

        return is_null($subClass) ? $parameters : array_filter($parameters, function ($p) use ($subClass) {
            return $p->getClass() && $p->getClass()->isSubclassOf($subClass);
        });
    }
public static function fromAction(array $action, $subClass = null)
    {
        $parameters = is_string($action['uses'])
                        ? static::fromClassMethodString($action['uses'])
                        : (new ReflectionFunction($action['uses']))->getParameters();

        return is_null($subClass) ? $parameters : array_filter($parameters, function ($p) use ($subClass) {
            return $p->getClass() && $p->getClass()->isSubclassOf($subClass);
        });
    }
public static function fromAction ( array $ action , $ subClass = null ) { $ parameters = is_string ( $ action [ 'uses' ] ) ? static :: fromClassMethodString ( $ action [ 'uses' ] ) : ( new ReflectionFunction ( $ action [ 'uses' ] ) ) -> getParameters ( ) ; return is_null ( $ subClass ) ? $ parameters : array_filter ( $ parameters , function ( $ p ) use ( $ subClass ) { return $ p -> getClass ( ) && $ p -> getClass ( ) -> isSubclassOf ( $ subClass ) ; } ) ; }
Extract the route action's signature parameters.

@param  array  $action
@param  string  $subClass
@return array
Extract the route action s signature parameters .