Zend\Mvc\Router\Http\TreeRouteStack::routeFromArray
routeFromArray(): defined by SimpleRouteStack.
Signature
protected function routeFromArray(string|array|Traversable
$specs )
Parameters
$specs
— object
Returns
- RouteInterface
Errors/Exceptions
-
InvalidArgumentException
- When route definition is not an array nor traversable
-
InvalidArgumentException
- When chain routes are not an array nor traversable
-
RuntimeException
- When a generated routes does not implement the HTTP route interface