Aviat\Director\RouteConfig::patch
Add a route matching a PATCH HTTP request
Signature
public function patch(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
Returns
- RouteConfig
Test Coverage
Information
- Coverage: 1/1 Lines (100%)
- Tests: 2
- Passed: 2 (100%)
Tests
- [ PASSED ] — RouteConfigTest::testGetPostPutPatchOptionsDeleteAll with data set #8
- [ PASSED ] — RouteConfigTest::testGetPostPutPatchOptionsDeleteAll with data set #9