Closed
Description
hi,
I have a Deprecation, and I do not know where it comes from.
I followed this pull request #18034.
But I always the deprecation.
I was told that it was because I used "@template()" in my controllers, I use them with parameters.
but if I delete "@template", I have this error :
request.CRITICAL: Uncaught PHP Exception LogicException:
"The controller must return a response (Array(categories => Array(
0 => Object(MyBundle\HardwareBundle\Entity\Category),
1 => Object(MyBundle\HardwareBundle\Entity\Category),
2 => Object(MyBundle\HardwareBundle\Entity\Category),
3 => Object(MyBundle\HardwareBundle\Entity\Category)),
configs => Array(0 => Object(MyBundle\HardwareBundle\Entity\Config),
1 => Object(MyBundle\HardwareBundle\Entity\Config),
2 => Object(MyBundle\HardwareBundle\Entity\Config)),
currency => Object(MyBundle\MainBundle\Entity\Currency)) given).
" at /home/MyBundle/www/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 171
{"exception":"[object] (LogicException(code: 0): The controller must return a response (Array(categories => Array(
0 => Object(MyBundle\\HardwareBundle\\Entity\\Category),
1 => Object(MyBundle\\HardwareBundle\\Entity\\Category),
2 => Object(MyBundle\\HardwareBundle\\Entity\\Category),
3 => Object(MyBundle\\HardwareBundle\\Entity\\Category)),
configs => Array(0 => Object(MyBundle\\HardwareBundle\\Entity\\Config),
1 => Object(MyBundle\\HardwareBundle\\Entity\\Config),
2 => Object(MyBundle\\HardwareBundle\\Entity\\Config)),
currency => Object(MyBundle\\MainBundle\\Entity\\Currency)) given).
at /home/MyBundle/www/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:171)"} []
Thank you for your help