for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace inroutephp\inroute\Runtime\Aura;
use inroutephp\inroute\Runtime\RouteInterface;
use Aura\Router\Map;
final class RouteMapper
{
/**
* @var Map
*/
private $map;
public function __construct(Map $map)
$this->map = $map;
}
public function mapRoute(RouteInterface $route): void
$this->map
->route($route->getName(), $route->getPath(), $route)
->allows($route->getHttpMethods())
;