From 6e9bb7341519a0ef71f2148afce6630b4e536e35 Mon Sep 17 00:00:00 2001 From: Dominik Hajduk Date: Sat, 4 Mar 2017 22:37:51 +0100 Subject: [PATCH] Add MicroKernelTrait advanced example run section --- configuration/micro_kernel_trait.rst | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/configuration/micro_kernel_trait.rst b/configuration/micro_kernel_trait.rst index 74a89b24590..d2280505823 100644 --- a/configuration/micro_kernel_trait.rst +++ b/configuration/micro_kernel_trait.rst @@ -88,7 +88,7 @@ That's it! To test it, you can start the built-in web server: Then see the JSON response in your browser: -> http://localhost:8000/random/10 + http://localhost:8000/random/10 The Methods of a "Micro" Kernel ------------------------------- @@ -319,6 +319,17 @@ this: ├─ composer.json └─ composer.lock +As before you can use PHP built-in server: + +.. code-block:: bash + + cd web/ + $ php -S localhost:8000 + +Then see webpage in browser: + + http://localhost:8000/random/10 + Hey, that looks a lot like a *traditional* Symfony application! You're right: the ``MicroKernelTrait`` *is* still Symfony: but you can control your structure and features quite easily.