ControllerInspector
class ControllerInspector (View source)
Properties
protected array | $verbs | An array of HTTP verbs. |
Methods
array
getRoutable(string $controller, string $prefix)
Get the routable methods for a controller.
bool
array
array
getIndexData(array $data, string $prefix)
Get the routable data for an index method.
string
getVerb(string $name)
Extract the verb from a controller action.
string
getPlainUri(string $name, string $prefix)
Determine the URI from the given method name.
string
addUriWildcards(string $uri)
Add wildcards to the given URI.
Details
array
getRoutable(string $controller, string $prefix)
Get the routable methods for a controller.
bool
isRoutable(ReflectionMethod $method)
Determine if the given controller method is routable.
array
getMethodData(ReflectionMethod $method, string $prefix)
Get the method data for a given method.
protected array
getIndexData(array $data, string $prefix)
Get the routable data for an index method.
string
getVerb(string $name)
Extract the verb from a controller action.
string
getPlainUri(string $name, string $prefix)
Determine the URI from the given method name.
string
addUriWildcards(string $uri)
Add wildcards to the given URI.