Aviat\Director\RouteConfig::put
Add a route matching a PUT HTTP request
Signature
public function put(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 #6
- [ PASSED ] — RouteConfigTest::testGetPostPutPatchOptionsDeleteAll with data set #7