mirror of
https://github.com/symfony/recipes.git
synced 2026-09-18 10:36:43 +03:00
Use PHP to define the services and routes of the app
This commit is contained in:
@@ -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'])
|
||||
// ;
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user