Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ServerBundle deprecation while using Symfony local server

Tags:

php

symfony

I'm using Symfony 4.4.2
When I run the server using the server bundle...

./bin/console server:run

...I get a deprecation warning:

User Deprecated: Using the WebserverBundle is deprecated since Symfony 4.4. The new Symfony local server has more features, you can use it instead.

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

symfony server:start --no-tls

However, the deprecation persists.
Why?

like image 528
Cl00e9ment Avatar asked Jan 11 '20 14:01

Cl00e9ment


1 Answers

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:

composer remove symfony/web-server-bundle
like image 186
mxlhz Avatar answered Nov 13 '22 07:11

mxlhz