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

Commit 45f1c05

Browse files
committed
mention adding CmfCreateBundle to assetic configuration
1 parent 08e22b2 commit 45f1c05

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

bundles/create/introduction.rst

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,37 @@ You also need to configure the FOSRestBundle to handle json:
162162
),
163163
));
164164
165+
If you want to use Assetic to combine the CSS and Javascript used for
166+
create.js, you need to enable the CreateBundle in the assetic configuration.
167+
Find the configuration for `assetic.bundles`. If it is not present, assetic
168+
automatically scans all bundles for assets and you don't need to do anything.
169+
If you limit the bundles, you need to add ``CmfCreateBundle`` to the list of
170+
bundles.
171+
172+
.. configuration-block::
173+
174+
.. code-block:: yaml
175+
176+
assetic:
177+
bundles: [ ... , CmfCreateBundle, ...]
178+
179+
.. code-block:: xml
180+
181+
<config xmlns="http://example.org/schema/dic/assetic">
182+
...
183+
<bundle>CmfCreateBundle</bundle>
184+
...
185+
</config>
186+
187+
.. code-block:: php
188+
189+
$container->loadFromExtension('assetic', array(
190+
'bundles' => array(
191+
...
192+
'CmfCreateBundle',
193+
...
194+
),
195+
));
165196
166197
Routing
167198
~~~~~~~

0 commit comments

Comments
 (0)