Replies: 1 comment 2 replies
-
Yes, this is a bug in AbstractBundle. Property Thank you for testing upcoming Symfony 7.0 version. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm testing a bundle that works in 6.4 with Symfony 7 and running into an error.
I don't know if this is a bug in HttpKernel or if something has changes when extending AbstractBundle, so I'm reporting it.
My bundle initialization is pretty basic.
https://github.com/survos/SurvosCrawlerBundle/blob/main/src/SurvosCrawlerBundle.php
Example:
Symfony operations: 1 recipe (1690234b1ee9712d097f9393129adc58)
Executing script cache:clear [KO]
[KO]
Script cache:clear returned with error code 255
!! Error {MonologBundle #111
!! #message: "Typed property Symfony\Component\HttpKernel\Bundle\Bundle::$path must not be accessed before initialization"
!! #code: 0
!! #file: "./vendor/symfony/http-kernel/Bundle/AbstractBundle.php"
!! #line: 53
!! trace: {
!! ./vendor/symfony/http-kernel/Bundle/AbstractBundle.php:53 { …}
!! ./vendor/symfony/http-kernel/Kernel.php:546 { …}
!! ./vendor/symfony/http-kernel/Kernel.php:633 { …}
!! ./vendor/symfony/http-kernel/Kernel.php:587 { …}
!! ./vendor/symfony/http-kernel/Kernel.php:487 { …}
!! ./vendor/symfony/http-kernel/Kernel.php:723 { …}
!! ./vendor/symfony/http-kernel/Kernel.php:123 { …}
!! ./vendor/symfony/framework-bundle/Console/Application.php:173 { …}
!! ./vendor/symfony/framework-bundle/Console/Application.php:71 { …}
!! ./vendor/symfony/console/Application.php:169 { …}
!! ./vendor/symfony/runtime/Runner/Symfony/ConsoleApplicationRunner.php:49 { …}
!! ./vendor/autoload_runtime.php:29 { …}
!! ./bin/console:11 {
!! ›
!! › require_once dirname(DIR).'/vendor/autoload_runtime.php';
!! ›
!! arguments: {
!! "/home/tac/trash/command-7/vendor/autoload_runtime.php"
!! }
!! }
!! }
!! }
!! 2023-10-25T13:41:44+00:00 [critical] Uncaught Error: Typed property Symfony\Component\HttpKernel\Bundle\Bundle::$path must not be accessed before initialization
!!
Beta Was this translation helpful? Give feedback.
All reactions