Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Annotation issue #13

Closed
xchs opened this issue Sep 5, 2018 · 2 comments
Closed

Annotation issue #13

xchs opened this issue Sep 5, 2018 · 2 comments

Comments

@xchs
Copy link

xchs commented Sep 5, 2018

When updating to Contao 4.4.24 the following error message is displayed when building the Symfony Cache:

16:00:30 ERROR     [console] Error thrown while running command "cache:warmup --env=prod". Message: "[Semantical Error] The annotation "@Sensio\Bundle\FrameworkExtraBundle\Configuration\Route" in class Softleister\BackupDbBundle\Controller\BackupDbController does not exist, or could not be auto-loaded in /home/aeropens/public_html/contao4test/vendor/do-while/contao-backupdb-bundle/src/Controller (which is being imported from "/home/aeropens/public_html/contao4test/vendor/do-while/contao-backupdb-bundle/src/ContaoManager/../Resources/config/routing.yml"). Make sure annotations are installed and enabled." ["exception" => Symfony\Component\Config\Exception\FileLoaderLoadException { …},"command" => "cache:warmup --env=prod","message" => "[Semantical Error] The annotation "@Sensio\Bundle\FrameworkExtraBundle\Configuration\Route" in class Softleister\BackupDbBundle\Controller\BackupDbController does not exist, or could not be auto-loaded in /home/aeropens/public_html/contao4test/vendor/do-while/contao-backupdb-bundle/src/Controller (which is being imported from "/home/aeropens/public_html/contao4test/vendor/do-while/contao-backupdb-bundle/src/ContaoManager/../Resources/config/routing.yml"). Make sure annotations are installed and enabled."] []

In FileLoader.php line 168:

  [Semantical Error] The annotation "@Sensio\Bundle\FrameworkExtraBundle\Conf
  iguration\Route" in class Softleister\BackupDbBundle\Controller\BackupDbCon
  troller does not exist, or could not be auto-loaded in /home/aeropens/publi
  c_html/contao4test/vendor/do-while/contao-backupdb-bundle/src/Controller (w
  hich is being imported from "/home/aeropens/public_html/contao4test/vendor/
  do-while/contao-backupdb-bundle/src/ContaoManager/../Resources/config/routi
  ng.yml"). Make sure annotations are installed and enabled.


In AnnotationException.php line 54:

  [Semantical Error] The annotation "@Sensio\Bundle\FrameworkExtraBundle\Conf
  iguration\Route" in class Softleister\BackupDbBundle\Controller\BackupDbCon
  troller does not exist, or could not be auto-loaded.
@fiedsch
Copy link

fiedsch commented Sep 5, 2018

Ich habe eben den gleichen Fehler in einem meiner Bundles. Es liegt an dieser Änderung: contao/contao@fb16b1e#diff-d823bb2bdb35753a50aaca0e50bc19e7

Wie das korrekt zu fixen ist muss ich noch recherchieren.

// use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; // for annotations!
use Symfony\Component\Routing\Annotation\Route; // for annotations! Contao >= 4.4.24

@do-while
Copy link
Owner

do-while commented Sep 5, 2018

Es hat geholfen, die Anhängigkeit von "sensio/framework-extra-bundle" in der composer.json einzutragen.
Neue Version 1.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants