Use PHP to define the services and routes of the app

This commit is contained in:
Nicolas Grekas
2020-02-24 17:24:22 +01:00
parent e76843f80e
commit 8da7d03c93
6 changed files with 93 additions and 4 deletions
@@ -0,0 +1,12 @@
<?php
use App\Kernel;
use Symfony\Bundle\FrameworkBundle\Routing\Loader\Configurator\RoutingConfigurator;
return static function (RoutingConfigurator $routes, Kernel $kernel): void {
// $routes->add('index', '/')
// ->controller([App\Controller\DefaultController::class, 'index'])
// ;
};