for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Mcustiel\PowerRoute\InputSources;
use Psr\Http\Message\ServerRequestInterface;
class Method implements InputSourceInterface
{
public function getValue(ServerRequestInterface $request, $argument = null)
return strtoupper($request->getMethod());
}