@@ -90,11 +90,26 @@ The previous reStructuredText snippet renders as follow:
90
90
91
91
// Configuration in PHP
92
92
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
+
93
108
The current list of supported formats are the following:
94
109
95
- =================== ======================================
110
+ =================== ==============================================================================
96
111
Markup Format Use It to Display
97
- =================== ======================================
112
+ =================== ==============================================================================
98
113
``html `` HTML
99
114
``xml `` XML
100
115
``php `` PHP
@@ -105,7 +120,9 @@ Markup Format Use It to Display
105
120
``ini `` INI
106
121
``php-annotations `` PHP Annotations
107
122
``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
+ =================== ==============================================================================
109
126
110
127
Adding Links
111
128
~~~~~~~~~~~~
0 commit comments