How to use Grouped Use statements with Symfony3?

Vinicius Dias

I have PHP 7.1 installed on my machine and I'm developping an application with Symfony. When I tried to group my use statements from same namespace I got an error, saying that they were never declared.

My use:

use Sensio\Bundle\FrameworkExtraBundle\Configuration\{
    Route, Method
};

The error shown int the browser:

[Semantical Error] The annotation "@Route" in method AppBundle\Controller\EpisodiosController::listarAction() was never imported. Did you maybe forget to add a "use" statement for this annotation? in /home/vinicius/Documentos/controle-de-series/src/AppBundle/Controller/ (which is being imported from "/home/vinicius/Documentos/controle-de-series/app/config/routing.yml").

Did I miss something?

Thanks in advance.

Vinicius Dias

I figured out that the error is a bug concerning to the annotations, and not to the hole framework. So, splitting the use statements of the annotations worked just fine.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

how does "{% use %}" work in twig using symfony3?

From Dev

how does "{% use %}" work in twig using symfony3?

From Dev

spacebars: how to use and / or in if statements

From Dev

How to use If statements in a stream?

From Dev

How to use multiple if statements

From Dev

How to use distinct in a grouped query?

From Dev

How to use "if statements" in "let" statements in xquery

From Dev

How to use loop statements and condition statements in TOSCA?

From Dev

How to use redirect users to different sub-website based on user information based on symfony3

From Dev

How to use prepared statements in Joomla?

From Dev

How to Use ifelse Statements in R

From Dev

Flutter: How To Use If Statements In Decoration

From Dev

How to use Condtional statements in XSLT

From Dev

How to use multiple OR statements efficiently

From Dev

how to use Array with if else statements?

From Java

How to use multiple WITH statements in one PostgreSQL query?

From Dev

How to use lambda statements to initialize UIPropertyMetaData in WPF

From Dev

how to use case statements in CDbCriteria() of Yii framework?

From Dev

How to use count(*) and Division Operation in SQL statements

From Dev

How to use select statements with variables in mysql in python

From Dev

Simple loop in VBA not working and how to use If statements

From Dev

How to use if else statements in select form?

From Dev

How to use if statements with in for loop in Hogan js

From Dev

How to use prepared statements in lua-dbi?

From Dev

How to use set and if statements in batch files

From Dev

How do i use '%' symbol in FXML statements

From Dev

How to use collatz conjecture without if statements?

From Dev

How to use multiple .each statements in ruby?

From Dev

How to use prepared statements with Android sqlite?

Related Related

  1. 1

    how does "{% use %}" work in twig using symfony3?

  2. 2

    how does "{% use %}" work in twig using symfony3?

  3. 3

    spacebars: how to use and / or in if statements

  4. 4

    How to use If statements in a stream?

  5. 5

    How to use multiple if statements

  6. 6

    How to use distinct in a grouped query?

  7. 7

    How to use "if statements" in "let" statements in xquery

  8. 8

    How to use loop statements and condition statements in TOSCA?

  9. 9

    How to use redirect users to different sub-website based on user information based on symfony3

  10. 10

    How to use prepared statements in Joomla?

  11. 11

    How to Use ifelse Statements in R

  12. 12

    Flutter: How To Use If Statements In Decoration

  13. 13

    How to use Condtional statements in XSLT

  14. 14

    How to use multiple OR statements efficiently

  15. 15

    how to use Array with if else statements?

  16. 16

    How to use multiple WITH statements in one PostgreSQL query?

  17. 17

    How to use lambda statements to initialize UIPropertyMetaData in WPF

  18. 18

    how to use case statements in CDbCriteria() of Yii framework?

  19. 19

    How to use count(*) and Division Operation in SQL statements

  20. 20

    How to use select statements with variables in mysql in python

  21. 21

    Simple loop in VBA not working and how to use If statements

  22. 22

    How to use if else statements in select form?

  23. 23

    How to use if statements with in for loop in Hogan js

  24. 24

    How to use prepared statements in lua-dbi?

  25. 25

    How to use set and if statements in batch files

  26. 26

    How do i use '%' symbol in FXML statements

  27. 27

    How to use collatz conjecture without if statements?

  28. 28

    How to use multiple .each statements in ruby?

  29. 29

    How to use prepared statements with Android sqlite?

HotTag

Archive