8

我正在使用 Symfony 4.4.2
当我使用服务器包运行服务器时......

./bin/console server:run

...我收到弃用警告:

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

所以我安装了 Symfony 本地服务器,现在我正在使用它:

symfony server:start --no-tls

但是,弃用仍然存在。
为什么?

4

1 回答 1

19

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
于 2020-01-12T01:20:01.810 回答