Skip to content

deprecation Absolute template path support #20604

@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy