Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit b19fcc9

Browse files
committed
Added filelocation in code snippet for bundles\menu
1 parent 46208c7 commit b19fcc9

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

bundles/menu/configuration.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ persistence configuration has the following configuration:
2020

2121
.. code-block:: yaml
2222
23+
# app/config/config.yml
2324
cmf_menu:
2425
persistence:
2526
phpcr:
@@ -38,6 +39,7 @@ persistence configuration has the following configuration:
3839
3940
.. code-block:: xml
4041
42+
<!-- app/config/config.xml -->
4143
<?xml version="1.0" charset="UTF-8" ?>
4244
<container xmlns="http://symfony.com/schema/dic/services">
4345
<config xmlns="http://cmf.symfony.com/schema/dic/menu">
@@ -61,6 +63,7 @@ persistence configuration has the following configuration:
6163
6264
.. code-block:: php
6365
66+
// app/config/config.php
6467
$container->loadFromExtension('cmf_menu', array(
6568
'persistence' => array(
6669
'phpcr' => array(
@@ -194,6 +197,7 @@ You can configure the menu options extension in this sections.
194197

195198
.. code-block:: yaml
196199
200+
# app/config/config.yml
197201
cmf_menu:
198202
# ...
199203
cmf_menu:
@@ -204,6 +208,7 @@ You can configure the menu options extension in this sections.
204208
205209
.. code-block:: xml
206210
211+
<!-- app/config/config.xml -->
207212
<?xml version="1.0" charset="UTF-8" ?>
208213
<container xmlns="http://symfony.com/schema/dic/services">
209214
<config xmlns="http://cmf.symfony.com/schema/dic/menu">
@@ -218,6 +223,7 @@ You can configure the menu options extension in this sections.
218223
219224
.. code-block:: php
220225
226+
// app/config/config.php
221227
$container->loadFromExtension('cmf_menu', array(
222228
'admin_extensions' => array(
223229
'menu_options' => array(
@@ -254,6 +260,7 @@ The ``voters`` section enables you to enable and configure *pre-defined*
254260

255261
.. code-block:: yaml
256262
263+
# app/config/config.yml
257264
cmf_menu:
258265
# ...
259266
voters:
@@ -263,6 +270,7 @@ The ``voters`` section enables you to enable and configure *pre-defined*
263270
264271
.. code-block:: xml
265272
273+
<!-- app/config/config.xml -->
266274
<?xml version="1.0" charset="UTF-8" ?>
267275
<container xmlns="http://symfony.com/schema/dic/services">
268276
<config xmlns="http://cmf.symfony.com/schema/dic/menu">
@@ -274,6 +282,7 @@ The ``voters`` section enables you to enable and configure *pre-defined*
274282
275283
.. code-block:: php
276284
285+
// app/config/config.php
277286
$container->loadFromExtension('cmf_menu', array(
278287
'persistence' => array(
279288
'voters' => array(
@@ -332,12 +341,14 @@ To disable the menu content voter, use:
332341

333342
.. code-block:: yaml
334343
344+
# app/config/config.yml
335345
cmf_core:
336346
publish_workflow:
337347
enabled: false
338348
339349
.. code-block:: xml
340350
351+
<!-- app/config/config.yml -->
341352
<?xml version="1.0" charset="UTF-8" ?>
342353
<container xmlns="http://symfony.com/schema/dic/services">
343354
@@ -350,6 +361,7 @@ To disable the menu content voter, use:
350361
351362
.. code-block:: php
352363
364+
// app/config/config.yml
353365
$container->loadFromExtension('cmf_core', array(
354366
'publish_workflow' => array(
355367
'enabled' => false,

bundles/menu/menu_factory.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ Example Menu Listener
105105
This listener handles menu nodes that point to a different menu by implementing
106106
the ``MenuReferrerInterface``::
107107

108+
// TODO
108109
namespace Acme\DemoBundle;
109110

110111
interface MenuReferrerInterface
@@ -156,6 +157,7 @@ The service needs to be tagged as event listener:
156157

157158
.. code-block:: yaml
158159
160+
# src/COMPANY/BUNDLE/Resources/config/services.yml
159161
services:
160162
acme_demo.listener.menu_referrer_listener:
161163
class: Acme\DemoBundle\EventListener\CreateMenuItemFromNodeListener
@@ -169,6 +171,7 @@ The service needs to be tagged as event listener:
169171
170172
.. code-block:: xml
171173
174+
<!-- src/COMPANY/BUNDLE/Resources/config/services.xml -->
172175
<?xml version="1.0" encoding="UTF-8" ?>
173176
<container xmlns="http://symfony.com/schema/dic/services">
174177
<service id="acme_demo.listener.menu_referrer_listener" class="Acme\DemoBundle\EventListener\CreateMenuItemFromNodeListener">
@@ -182,6 +185,7 @@ The service needs to be tagged as event listener:
182185
183186
.. code-block:: php
184187
188+
// src/COMPANY/BUNDLE/Resources/config/services.php
185189
use Symfony\Component\DependencyInjection\Definition;
186190
use Symfony\Component\DependencyInjection\Reference;
187191

bundles/menu/voters.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,14 @@ configuration.
146146

147147
.. code-block:: yaml
148148
149+
# TODO
149150
cmf_menu:
150151
voters:
151152
uri-prefix: ~
152153
153154
.. code-block:: xml
154155
156+
# TODO
155157
<?xml version="1.0" encoding="UTF-8" ?>
156158
<container xmlns="http://symfony.com/schema/dic/services">
157159
<config xmlns="http://cmf.symfony.com/schema/dic/menu">
@@ -163,6 +165,7 @@ configuration.
163165
164166
.. code-block:: php
165167
168+
# TODO
166169
$container->loadFromExtension('cmf_menu', array(
167170
'voters' => array(
168171
'uri_prefix' => null
@@ -205,6 +208,7 @@ voters (see below), except you do not need to write your own PHP code:
205208

206209
.. code-block:: yaml
207210
211+
# src/COMPANY/BUNDLE/Resources/config/services.yml
208212
services:
209213
my_bundle.menu_voter.parent:
210214
class: Symfony\Cmf\Bundle\MenuBundle\Voter\RequestParentContentIdentityVoter
@@ -218,6 +222,7 @@ voters (see below), except you do not need to write your own PHP code:
218222
219223
.. code-block:: xml
220224
225+
<!-- src/COMPANY/BUNDLE/Resources/config/services.xml -->
221226
<?xml version="1.0" encoding="UTF-8" ?>
222227
<container xmlns="http://symfony.com/schema/dic/services"
223228
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -241,6 +246,7 @@ voters (see below), except you do not need to write your own PHP code:
241246
242247
.. code-block:: php
243248
249+
// src/COMPANY/BUNDLE/Resources/config/services.php
244250
use Symfony\Component\DependencyInjection\Definition;
245251
246252
$definition = new Definition(

0 commit comments

Comments
 (0)