Skip to content

Commit 327170e

Browse files
committed
Merge branch '3.4' into 4.2
* 3.4: replaced PHP built-in server with the Symfony CLI one
2 parents 3c71d7e + c2247ed commit 327170e

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

configuration/micro_kernel_trait.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,12 @@ Next, create an ``index.php`` file that defines the kernel class and executes it
7272
$response->send();
7373
$kernel->terminate($request, $response);
7474

75-
That's it! To test it, you can start the built-in web server:
75+
That's it! To test it, start the :doc:`Symfony Local Web Server
76+
</setup/symfony_server>`:
7677

7778
.. code-block:: terminal
7879
79-
$ php -S localhost:8000
80+
$ symfony server:start
8081
8182
Then see the JSON response in your browser:
8283

@@ -322,12 +323,13 @@ this:
322323
├─ composer.json
323324
└─ composer.lock
324325
325-
As before you can use PHP built-in server:
326+
As before you can use the :doc:`Symfony Local Web Server
327+
</setup/symfony_server>`:
326328

327329
.. code-block:: terminal
328330
329331
cd public/
330-
$ php -S localhost:8000 -t public/
332+
$ symfony server:start
331333
332334
Then see webpage in browser:
333335

create_framework/front_controller.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,12 @@ web root directory:
153153
Now, configure your web server root directory to point to ``web/`` and all
154154
other files won't be accessible from the client anymore.
155155

156-
To test your changes in a browser (``http://localhost:4321/hello?name=Fabien``), run
157-
the PHP built-in server:
156+
To test your changes in a browser (``http://localhost:4321/hello?name=Fabien``),
157+
run the :doc:`Symfony Local Web Server </setup/symfony_server>`:
158158

159159
.. code-block:: terminal
160160
161-
$ php -S 127.0.0.1:4321 -t web/ web/front.php
161+
$ symfony server:start --port=4321 --passthru=front.php
162162
163163
.. note::
164164

create_framework/introduction.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,13 @@ start with the simplest web application we can think of in PHP::
101101

102102
printf('Hello %s', $name);
103103

104-
You can use the PHP built-in server to test this great application in a browser
105-
(``http://localhost:4321/index.php?name=Fabien``):
104+
You can use the :doc:`Symfony Local Web Server </setup/symfony_server>` to test
105+
this great application in a browser
106+
(``http://localhost:8000/index.php?name=Fabien``):
106107

107108
.. code-block:: terminal
108109
109-
$ php -S 127.0.0.1:4321
110-
111-
Otherwise, you can always use your own server (Apache, Nginx, etc.).
110+
$ symfony server:start
112111
113112
In the :doc:`next chapter </create_framework/http_foundation>`, we are going to
114113
introduce the HttpFoundation Component and see what it brings us.

0 commit comments

Comments
 (0)