Skip to content

Could not run make:controller Foobar --no-interaction #1678

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

Closed
lyrixx opened this issue Mar 27, 2025 · 0 comments · Fixed by #1688
Closed

Could not run make:controller Foobar --no-interaction #1678

lyrixx opened this issue Mar 27, 2025 · 0 comments · Fixed by #1688

Comments

@lyrixx
Copy link
Member

lyrixx commented Mar 27, 2025

There is an exception while running a command in a no interactive mode:

>/home/gregoire/dev/labs/symfony/mcp(main *+) bin/console make:controller Foobar  -n
[critical] Error thrown while running command "make:controller Foobar -n". Message: "Typed property Symfony\Bundle\MakerBundle\Maker\MakeController::$controllerClassData must not be accessed before initialization"
[critical] Uncaught Error: Typed property Symfony\Bundle\MakerBundle\Maker\MakeController::$controllerClassData must not be accessed before initialization

In MakeController.php line 120:
                                                                                                                                   
  Typed property Symfony\Bundle\MakerBundle\Maker\MakeController::$controllerClassData must not be accessed before initialization  
                                                                                                                                   

make:controller [--no-template] [-i|--invokable] [--with-tests] [--] [<controller-class>]

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

Successfully merging a pull request may close this issue.

1 participant