'TRACE',
'OPTIONS',
'CONNECT',
'PATCH',
];
} /**
* {@inheritdoc}
*/
public function availableMethods() { $methods =
$this->
requestMethods();
$available =
[];
foreach ($methods as $method) { // Only expose methods where the HTTP request method exists on the plugin.
if (method_exists($this,
strtolower($method))) { $available[] =
$method;
} } return $available;
} /**
* Gets the base route for a particular method.
*
* @param string $canonical_path
* The canonical path for the resource.
* @param string $method
* The HTTP method to be used for the route.
*
* @return \Symfony\Component\Routing\Route
* The created base route.
*/