Skip to content
Advertisement

ServerBundle deprecation while using Symfony local server

I’m using Symfony 4.4.2
When I run the server using the server bundle…

JavaScript

…I get a deprecation warning:

JavaScript

So I installed the Symfony local server and now I’m using it:

JavaScript

However, the deprecation persists.
Why?

Advertisement

Answer

You have included the WebserverBundle bundle in your project, but this bundle will be deprecated past Symfony 4.4. As Cerad explained, the bundle itself is fine and you can still use it for now, but it simply means that you won’t be able to use it anymore if you update your project to Symfony 5.

If you don’t use the bundle and want to get rid of the deprecation message, simply run the following command:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement