Aviat\Director\RouteConfig::get
Add a route matching a GET HTTP request
Signature
public function get(string
$name,
string
$path,
array|callable
$callback,
[array
$options = ] )
Parameters
$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
- - additional route options, such as placeholders
Returns
- RouteConfig
Test Coverage
Information
- Coverage: 1/1 Lines (100%)
- Tests: 2
- Passed: 2 (100%)
Tests
- [ PASSED ] — RouteConfigTest::testGetPostPutPatchOptionsDeleteAll with data set #0
- [ PASSED ] — RouteConfigTest::testGetPostPutPatchOptionsDeleteAll with data set #1