Aviat\Director\RouteConfig::addRouteToMap
Helper method to add a route to the internal map
Signature
protected function addRouteToMap(string
$verb,
string
$name,
string
$path,
array|callable
$callback,
[array
$options = ] )
Parameters
$verb
—
string
- - The http verb of the route
$name
—
string
- - The name of the route
$path
—
string
- - The path or pattern to match
$callback
—
object
- - The callback to dispatch on match
$options
—
array
Returns
- RouteConfig
Test Coverage
Information
- Coverage: 6/6 Lines (100%)
- Tests: 16
- Passed: 16 (100%)
Tests
- [ PASSED ] — RouteConfigTest::testGetPostPutPatchOptionsDeleteAll with data set #0
- [ PASSED ] — RouteConfigTest::testGetPostPutPatchOptionsDeleteAll with data set #1
- [ PASSED ] — RouteConfigTest::testGetPostPutPatchOptionsDeleteAll with data set #2
- [ PASSED ] — RouteConfigTest::testGetPostPutPatchOptionsDeleteAll with data set #3
- [ PASSED ] — RouteConfigTest::testGetPostPutPatchOptionsDeleteAll with data set #4
- [ PASSED ] — RouteConfigTest::testGetPostPutPatchOptionsDeleteAll with data set #5
- [ PASSED ] — RouteConfigTest::testGetPostPutPatchOptionsDeleteAll with data set #6
- [ PASSED ] — RouteConfigTest::testGetPostPutPatchOptionsDeleteAll with data set #7
- [ PASSED ] — RouteConfigTest::testGetPostPutPatchOptionsDeleteAll with data set #8
- [ PASSED ] — RouteConfigTest::testGetPostPutPatchOptionsDeleteAll with data set #9
- [ PASSED ] — RouteConfigTest::testGetPostPutPatchOptionsDeleteAll with data set #10
- [ PASSED ] — RouteConfigTest::testGetPostPutPatchOptionsDeleteAll with data set #11
- [ PASSED ] — RouteConfigTest::testGetPostPutPatchOptionsDeleteAll with data set #12
- [ PASSED ] — RouteConfigTest::testGetPostPutPatchOptionsDeleteAll with data set #13
- [ PASSED ] — RouteConfigTest::testGetPostPutPatchOptionsDeleteAll with data set #14
- [ PASSED ] — RouteConfigTest::testGetPostPutPatchOptionsDeleteAll with data set #15