8000 deprecation Absolute template path support · Issue #20604 · symfony/symfony · GitHub
[go: up one dir, main page]

10000
Skip to content
deprecation Absolute template path support #20604
Closed
@EmyJ

Description

@EmyJ

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0