|
You are here |
php-and-symfony.matthiasnoback.nl | ||
| | | | |
symfony.com
|
|
| | | | | Symfony 7.3 routing simplifies controller detection, adds route aliases in attributes, and introduces parameter aliases. | |
| | | | |
symfony.com
|
|
| | | | | In Symfony 3.3, the class argument of the services is now optional. When it's undefined, Symfony considers that the id of the service is the PHP class. | |
| | | | |
matthiasnoback.nl
|
|
| | | | | In the previous part of this series we decreased coupling of a Symfony controller to the Symfony2 framework by removing its dependency on the standard Controller class from the FrameworkBundle. Now we take a look at annotations. They were initially introduced for rapid development (no need to create/modify some configuration file, just solve the issues inline!): namespace Matthias\ClientBundle\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; /** * @Route("/client") */ class ClientController { /** * @Route('/{id}') * @Method("GET") * @ParamConvert... | |
| | | | |
www.thinkcode.se
|
|
| | | |||