Skip to content

Commit a1901ff

Browse files
committed
Merge branch '3.4' into 4.0
* 3.4: removing h1 but making JS more fool-proof Make use of %kernel.project_dir% parameter Mention the handy `ignoreExtraKeys()` method add empty h1 tags to html template
2 parents 66258b9 + 215d667 commit a1901ff

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

components/config/definition.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,9 @@ Before defining the children of an array node, you can provide options like:
219219
If called (with ``false``), keys with dashes are *not* normalized to underscores.
220220
It is recommended to use this with prototype nodes where the user will define
221221
a key-value map, to avoid an unnecessary transformation.
222+
``ignoreExtraKeys()``
223+
Allows extra config keys to be specified under an array without
224+
throwing an exception.
222225

223226
A basic prototyped array configuration can be defined as follows::
224227

configuration/override_dir_structure.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ define your own templates directory (or directories):
104104
# app/config/config.yml
105105
twig:
106106
# ...
107-
paths: ["%kernel.root_dir%/../templates"]
107+
paths: ["%kernel.project_dir%/templates"]
108108
109109
.. code-block:: xml
110110
@@ -119,7 +119,7 @@ define your own templates directory (or directories):
119119
http://symfony.com/schema/dic/twig/twig-1.0.xsd">
120120
121121
<twig:config>
122-
<twig:path>%kernel.root_dir%/../templates</twig:path>
122+
<twig:path>%kernel.project_dir%/templates</twig:path>
123123
</twig:config>
124124
125125
</container>
@@ -129,7 +129,7 @@ define your own templates directory (or directories):
129129
// app/config/config.php
130130
$container->loadFromExtension('twig', array(
131131
'paths' => array(
132-
'%kernel.root_dir%/../templates',
132+
'%kernel.project_dir%/templates',
133133
),
134134
));
135135
@@ -197,7 +197,7 @@ You also need to change the ``extra.symfony-web-dir`` option in the
197197
http://symfony.com/schema/dic/assetic/assetic-1.0.xsd">
198198
199199
<!-- ... -->
200-
<assetic:config read-from="%kernel.root_dir%/../../public_html" />
200+
<assetic:config read-from="%kernel.project_dir%/../public_html" />
201201
202202
</container>
203203

frontend/encore/simple-example.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Great! Use ``require()`` to import ``jquery`` and ``greet.js``:
144144
var greet = require('./greet');
145145
146146
$(document).ready(function() {
147-
$('h1').html(greet('john'));
147+
$('body').prepend('<h1>'+greet('john')+'</h1>');
148148
});
149149
150150
That's it! When you build your assets, jQuery and ``greet.js`` will automatically

0 commit comments

Comments
 (0)