Skip to content

Commit 5afc362

Browse files
committed
minor #14387 Make sure we install FrameworkExtra bundle and not just doctrine/annotations (Nyholm)
This PR was submitted for the 5.x branch but it was merged into the 4.4 branch instead. Discussion ---------- Make sure we install FrameworkExtra bundle and not just doctrine/annotations This PR will fix #14203 and revert #14198 @javiereguiluz wrote: > There was a package called annotations-pack (see https://packagist.org/packages/symfony/annotations-pack) which allowed to run composer require annotations (when using Symfony Flex) This is true. The pack was removed. Currently there is a flex alias to install SensioFrameworkExtraBundle when one run `composer require annotations`. That will make sure to install SensioFrameworkExtraBundle and doctrine/annotations. One will always need SensioFrameworkExtraBundle to be able to use route config with annotations, only doctrine/annotations is not good enough. ------ People that is not using Flex will see the `Could not find package annotations` as @albuquerque53 saw. Commits ------- fa569bd Make sure we install FrameworkExtra bundle and not just doctrine/annotations
2 parents 527c6ea + fa569bd commit 5afc362

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Run this command once in your application to add support for annotations:
2727

2828
.. code-block:: terminal
2929
30-
$ composer require doctrine/annotations
30+
$ composer require annotations
3131
3232
In addition to installing the needed dependencies, this command creates the
3333
following configuration file:

0 commit comments

Comments
 (0)