Utils
in package
Router utilities class
Table of Contents
- convertMethodNameToRoute() : string
- Converting method name to route
- getCallableDescription() : string
- Method compiles callable description
- prepareRoute() : string
- Method prepares route for the next processing
Methods
convertMethodNameToRoute()
Converting method name to route
public
static convertMethodNameToRoute(string $methodName) : string
Parameters
- $methodName : string
-
method name
Return values
string —route
getCallableDescription()
Method compiles callable description
public
static getCallableDescription(mixed $processor) : string
Parameters
- $processor : mixed
Tags
Return values
string —description
prepareRoute()
Method prepares route for the next processing
public
static prepareRoute(array<string|int, string>|string $route) : string
Parameters
- $route : array<string|int, string>|string
-
route
Tags
Return values
string —trimmed route