Skip to content

Commit 5f59941

Browse files
committed
minor #9091 Update built_in_web_server.rst (MacDada, javiereguiluz)
This PR was merged into the 4.0 branch. Discussion ---------- Update built_in_web_server.rst Kernel cannot extend Kernel ;) Commits ------- eefbe7f Removed some contents unnecessary when using Flex 004526b Update built_in_web_server.rst
2 parents be08c1b + eefbe7f commit 5f59941

File tree

1 file changed

+2
-24
lines changed

1 file changed

+2
-24
lines changed

setup/built_in_web_server.rst

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -22,34 +22,12 @@ and enable the server bundle.
2222
Installing the Web Server Bundle
2323
--------------------------------
2424

25-
First, execute this command:
25+
Move into your project directory and run this command:
2626

2727
.. code-block:: terminal
2828
2929
$ cd your-project/
30-
$ composer require --dev symfony/web-server-bundle
31-
32-
Then, enable the bundle in the kernel of the application::
33-
34-
// src/Kernel.php
35-
class Kernel extends Kernel
36-
{
37-
public function registerBundles()
38-
{
39-
$bundles = array(
40-
// ...
41-
);
42-
43-
if ('dev' === $this->getEnvironment()) {
44-
// ...
45-
$bundles[] = new Symfony\Bundle\WebServerBundle\WebServerBundle();
46-
}
47-
48-
// ...
49-
}
50-
51-
// ...
52-
}
30+
$ composer require server --dev
5331
5432
Starting the Web Server
5533
-----------------------

0 commit comments

Comments
 (0)