@@ -90,11 +90,26 @@ The previous reStructuredText snippet renders as follow:
9090
9191 // Configuration in PHP
9292
93+ All code examples assume that you are using that feature inside a Symfony
94+ application. If you ever need to also show how to use it when working with
95+ standalone components in any PHP application, use the special formats
96+ ``php-symfony `` and ``php-standalone ``, which will be rendered like this:
97+
98+ .. configuration-block ::
99+
100+ .. code-block :: php-symfony
101+
102+ // PHP code using features provided by the Symfony framework
103+
104+ .. code-block :: php-standalone
105+
106+ // PHP code using standalone components
107+
93108 The current list of supported formats are the following:
94109
95- =================== ======================================
110+ =================== ==============================================================================
96111Markup Format Use It to Display
97- =================== ======================================
112+ =================== ==============================================================================
98113``html `` HTML
99114``xml `` XML
100115``php `` PHP
@@ -105,7 +120,9 @@ Markup Format Use It to Display
105120``ini `` INI
106121``php-annotations `` PHP Annotations
107122``php-attributes `` PHP Attributes
108- =================== ======================================
123+ ``php-symfony `` PHP code example when using the Symfony framework
124+ ``php-standalone `` PHP code to be used in any PHP application using standalone Symfony components
125+ =================== ==============================================================================
109126
110127Adding Links
111128~~~~~~~~~~~~
0 commit comments