Skip to content

Commit

Permalink
minor #936 PHP Attributes support in controllers (Rafikooo)
Browse files Browse the repository at this point in the history
This PR was merged into the 1.12 branch.

Discussion
----------

This PR introduces PHP attribute handling in controllers

Reference: https://symfony.com/doc/current/routing.html#creating-routes-as-attributes

Since this branch supports `Sylius 1.12` and `Symfony 5.4.*`, the configuration had to be adjusted according to these docs:
https://symfony.com/doc/5.4/routing.html#creating-routes-as-attributes-or-annotations

Commits
-------
  Add PHP Attributes support in controllers
  • Loading branch information
Wojdylak authored Feb 13, 2024
2 parents 1dc9d3c + 17ae9b1 commit 1b7aa18
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/routes/annotations.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
controllers:
resource: ../../src/Controller/
type: annotation

0 comments on commit 1b7aa18

Please sign in to comment.