for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the BEAR.Sunday package
*
* @license http://opensource.org/licenses/MIT MIT
*/
namespace BEAR\Sunday\Provide\Router;
use BEAR\Sunday\Annotation\DefaultSchemeHost;
use BEAR\Sunday\Extension\Router\RouterInterface;
use Ray\Di\AbstractModule;
class RouterModule extends AbstractModule
{
* {@inheritdoc}
protected function configure()
$this->bind(RouterInterface::class)->to(WebRouter::class);
$this->bind()->annotatedWith(DefaultSchemeHost::class)->toInstance('page://self');
}