Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 42e243c

Browse filesBrowse files
committed
Merge branch '2.3' into 2.4
* 2.3: add note about parameters in imports Fixed the official name of Node.js Added a note about the total deprecation of YUI
2 parents a2a6a08 + df16779 commit 42e243c
Copy full SHA for 42e243c

File tree

Expand file treeCollapse file tree

5 files changed

+46
-3
lines changed
Filter options
Expand file treeCollapse file tree

5 files changed

+46
-3
lines changed

‎book/service_container.rst

Copy file name to clipboardExpand all lines: book/service_container.rst
+2Lines changed: 2 additions & 0 deletions
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
+31Lines changed: 31 additions & 0 deletions
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

Copy file name to clipboardExpand all lines: cookbook/assetic/yuicompressor.rst
+9-3Lines changed: 9 additions & 3 deletions
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

Copy file name to clipboardExpand all lines: cookbook/configuration/configuration_organization.rst
+2Lines changed: 2 additions & 0 deletions
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

Copy file name to clipboardExpand all lines: cookbook/configuration/environments.rst
+2Lines changed: 2 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.