Skip to content

Commit 77d166b

Browse files
committed
Merge branch '2.4' into 2.5
* 2.4: add note about parameters in imports Fixed the official name of Node.js Added a note about the total deprecation of YUI
2 parents e8a1501 + 42e243c commit 77d166b

File tree

5 files changed

+46
-3
lines changed

5 files changed

+46
-3
lines changed

book/service_container.rst

+2
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,8 @@ configuration.
377377
// app/config/config.php
378378
$loader->import('@AcmeHelloBundle/Resources/config/services.php');
379379
380+
.. include:: /components/dependency_injection/_imports-parameters-note.rst.inc
381+
380382
The ``imports`` directive allows your application to include service container
381383
configuration resources from any other location (most commonly from bundles).
382384
The ``resource`` location, for files, is the absolute path to the resource
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
.. note::
2+
3+
Due to the way in which parameters are resolved, you cannot use them to
4+
build paths in imports dynamically. This means that something like the
5+
following doesn't work:
6+
7+
.. configuration-block::
8+
9+
.. code-block:: yaml
10+
11+
# app/config/config.yml
12+
imports:
13+
- { resource: "%kernel.root_dir%/parameters.yml" }
14+
15+
.. code-block:: xml
16+
17+
<!-- app/config/config.xml -->
18+
<?xml version="1.0" encoding="UTF-8" ?>
19+
<container xmlns="http://symfony.com/schema/dic/services"
20+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21+
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
22+
23+
<imports>
24+
<import resource="%kernel.root_dir%/parameters.yml" />
25+
</imports>
26+
</container>
27+
28+
.. code-block:: php
29+
30+
// app/config/config.php
31+
$loader->import('%kernel.root_dir%/parameters.yml');

cookbook/assetic/yuicompressor.rst

+9-3
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,13 @@ you can take advantage of this tool very easily.
1010

1111
.. caution::
1212

13-
The YUI Compressor is going through a `deprecation process`_. But don't
14-
worry! See :doc:`/cookbook/assetic/uglifyjs` for an alternative.
13+
The YUI Compressor is `no longer maintained by Yahoo`_ but by an independent
14+
volunteer. Moreover, Yahoo has decided to `stop all new development on YUI`_
15+
and to move to other modern alternatives such as Node.js.
16+
17+
That's why you are **strongly advised** to avoid using YUI utilities unless
18+
strictly necessary. Read :doc:`/cookbook/assetic/uglifyjs` for a modern and
19+
up-to-date alternative.
1520

1621
Download the YUI Compressor JAR
1722
-------------------------------
@@ -164,4 +169,5 @@ apply this filter when debug mode is off.
164169

165170
.. _`YUI Compressor`: http://developer.yahoo.com/yui/compressor/
166171
.. _`Download the JAR`: https://github.com./yui/yuicompressor/releases
167-
.. _`deprecation process`: http://www.yuiblog.com/blog/2012/10/16/state-of-yui-compressor/
172+
.. _`no longer maintained by Yahoo`: http://www.yuiblog.com/blog/2013/01/24/yui-compressor-has-a-new-owner/
173+
.. _`stop all new development on YUI`: http://yahooeng.tumblr.com/post/96098168666/important-announcement-regarding-yui

cookbook/configuration/configuration_organization.rst

+2
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ needed for the ``app/config/dev/config.yml`` file:
148148
149149
// ...
150150
151+
.. include:: /components/dependency_injection/_imports-parameters-note.rst.inc
152+
151153
Semantic Configuration Files
152154
----------------------------
153155

cookbook/configuration/environments.rst

+2
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,8 @@ The best way to accomplish this is via a new environment called, for example,
262262
'profiler' => array('only-exceptions' => false),
263263
));
264264
265+
.. include:: /components/dependency_injection/_imports-parameters-note.rst.inc
266+
265267
And with this simple addition, the application now supports a new environment
266268
called ``benchmark``.
267269

0 commit comments

Comments
 (0)