Updating doctrine/annotations deletes config/routes/annotations.yaml
Bilge opened this issue · 3 comments
Updating doctrine/annotations
deletes config/routes/annotations.yaml
causing all annotation routes to fail.
Updating recipe for doctrine/annotations...
Yes! Recipe updated!
No files were changed as a result of the update.
Despite erroneously claiming no files were changed, it deletes config/routes/annotations.yaml
.
$ git status
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
deleted: config/routes/annotations.yaml
modified: symfony.lock
Unsurprisingly, this causes Symfony\Component\HttpKernel\Exception\NotFoundHttpException
to be thrown by every page.
Occurs when updating the 1.0 recipe to 1.14.
According to #1076 (comment), it should be the case that symfony/routing
is pending an update, but it is not, according to the output of composer symfony:recipes:update
, which does not list that recipe as requiring an update.
I don't think it's valid to label this as a duplicate of #1076, since the conclusion thereof was to install the symfony/routing
recipe. Notwithstanding this instruction would be very opaque to the end-user were it true, given that even running composer symfony:recipes:install --force symfony/routing
does not generate any file whatsoever that would restore annotations to a working state, I can only conclude it is false.
Looking at the history, it looks like the routing recipe for 6.1+ is configuring the routing for attributes rather than for annotations.