예제 #1
0
 public function configure(App $app)
 {
     $router = $app->router();
     $router->get('/', function ($req, $res) {
         $res->write('foo');
     });
     return $router;
 }
예제 #2
0
파일: AppTest.php 프로젝트: spiffyjr/tonis
 public function testRouter()
 {
     $router = $this->app->router();
     $this->assertInstanceOf(Router::class, $router);
     $this->assertNotSame($router, $this->app->router());
 }