L3 Info : PHP et Applications Web
 
◃  Ch. 13 Symfony 7.4  ▹
 

Prérequis à l'utilisation d'annotation

  • PHP 8 !!
  • Fichier config/routes/attributes.yaml
    # config/routes/attributes.yaml
    controllers:  
        resource:  
            path: ../../src/Controller/  
            namespace: App\Controller  
        type: attribute    
    kernel:  
        resource: App\Kernel  
        type: attribute