@@ -90,11 +90,25 @@ The previous reStructuredText snippet renders as follow:
90
90
91
91
// Configuration in PHP
92
92
93
+ It may be relevant in some cases to write code examples when using the whole Symfony framework, but also
94
+ when using components as standalone libraries without the whole framework installed. In this case, you
95
+ may use special formats ``php-symfony `` and ``php-standalone ``, which will be rendered like this:
96
+
97
+ .. configuration-block ::
98
+
99
+ .. code-block :: php-symfony
100
+
101
+ // PHP code using features provided by the Symfony framework
102
+
103
+ .. code-block :: php-standalone
104
+
105
+ // PHP code using standalone components
106
+
93
107
The current list of supported formats are the following:
94
108
95
- =================== ======================================
109
+ =================== ==========================================================================================
96
110
Markup Format Use It to Display
97
- =================== ======================================
111
+ =================== ==========================================================================================
98
112
``html `` HTML
99
113
``xml `` XML
100
114
``php `` PHP
@@ -105,7 +119,9 @@ Markup Format Use It to Display
105
119
``ini `` INI
106
120
``php-annotations `` PHP Annotations
107
121
``php-attributes `` PHP Attributes
108
- =================== ======================================
122
+ ``php-symfony `` PHP code example when using the Symfony framework
123
+ ``php-standalone `` PHP code to be used in a standalone context, for example when using standalone components
124
+ =================== ==========================================================================================
109
125
110
126
Adding Links
111
127
~~~~~~~~~~~~
0 commit comments