Giter Site home page Giter Site logo

Comments (5)

dbu avatar dbu commented on July 22, 2024

that message comes from https://github.com/php-http/HttplugBundle/blob/master/src/Resources/config/data-collector.xml#L27 and with blame, we find #355

did you customize anything in your application? the http_message service is only kept around for BC, but should not be used by anything in the bundle itself

from httplugbundle.

ruudk avatar ruudk commented on July 22, 2024

I think this is happening because it’s a tagged service. Therefore, the Twig extension will load it, and trigger the deprecation?

from httplugbundle.

ruudk avatar ruudk commented on July 22, 2024

Created a Symfony 4.4 demo app that shows the deprecation: https://github.com/ruudk/httplug-bundle-deprecated-error-poc/tree/master

It's caused by the fact that Twig automatically loads the extension because it's a tagged service. When Twig instanciates, it constructs the deprecated extension, that triggers the deprecation.

Solution: Remove the <deprecated> tag from the service. WDYT?

from httplugbundle.

dbu avatar dbu commented on July 22, 2024

thanks for the demo app, that was useful to quickly play with the thing! indeed removing the deprecated mark in the service seems like the right fix - we do trigger deprecation in the php code if it is actually used.

from httplugbundle.

ruudk avatar ruudk commented on July 22, 2024

Thanks @dbu !

from httplugbundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.