diff --git a/configuration/micro_kernel_trait.rst b/configuration/micro_kernel_trait.rst index f4a4a5e57aa..a09ed4f8274 100644 --- a/configuration/micro_kernel_trait.rst +++ b/configuration/micro_kernel_trait.rst @@ -74,11 +74,12 @@ Next, create an ``index.php`` file that creates a kernel class and executes it:: $response->send(); $kernel->terminate($request, $response); -That's it! To test it, you can start the built-in web server: +That's it! To test it, start the :doc:`Symfony Local Web Server +`: .. code-block:: terminal - $ php -S localhost:8000 + $ symfony server:start Then see the JSON response in your browser: @@ -335,12 +336,13 @@ this: ├─ composer.json └─ composer.lock -As before you can use PHP built-in server: +As before you can use the :doc:`Symfony Local Web Server +`: .. code-block:: terminal cd web/ - $ php -S localhost:8000 + $ symfony server:start Then see webpage in browser: diff --git a/create_framework/front_controller.rst b/create_framework/front_controller.rst index 8d388c53855..07948406d77 100644 --- a/create_framework/front_controller.rst +++ b/create_framework/front_controller.rst @@ -153,12 +153,12 @@ web root directory: Now, configure your web server root directory to point to ``web/`` and all other files won't be accessible from the client anymore. -To test your changes in a browser (``http://localhost:4321/hello?name=Fabien``), run -the PHP built-in server: +To test your changes in a browser (``http://localhost:4321/hello?name=Fabien``), +run the :doc:`Symfony Local Web Server `: .. code-block:: terminal - $ php -S 127.0.0.1:4321 -t web/ web/front.php + $ symfony server:start --port=4321 --passthru=front.php .. note:: diff --git a/create_framework/introduction.rst b/create_framework/introduction.rst index d503fed1503..a8d95af867e 100644 --- a/create_framework/introduction.rst +++ b/create_framework/introduction.rst @@ -101,14 +101,13 @@ start with the simplest web application we can think of in PHP:: printf('Hello %s', $name); -You can use the PHP built-in server to test this great application in a browser -(``http://localhost:4321/index.php?name=Fabien``): +You can use the :doc:`Symfony Local Web Server ` to test +this great application in a browser +(``http://localhost:8000/index.php?name=Fabien``): .. code-block:: terminal - $ php -S 127.0.0.1:4321 - -Otherwise, you can always use your own server (Apache, Nginx, etc.). + $ symfony server:start In the :doc:`next chapter `, we are going to introduce the HttpFoundation Component and see what it brings us.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: