What are annotations in Symfony?
Annotations in Symfony are used for configuration of validation and mapping Doctrine information. Annotations are easy and convenient to use. In Standard Edition of Symfony, we have two additional bundles SensioFrameworkExtraBundle
and JMSSecurityExtraBundle
which provide better support for annotations. Using these bundles you can use annotations for controller configuration, routing, cache, security, template, etc.