Skip to content

Commit e340267

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 378ad68 + d7724dd commit e340267

File tree

20 files changed

+455
-425
lines changed

20 files changed

+455
-425
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ cache:
99
- $HOME/.cache/pip
1010
- _build
1111

12-
install: pip install sphinx~=1.3 git+https://github.com/fabpot/sphinx-php.git
12+
install: pip install sphinx~=1.3.0 git+https://github.com/fabpot/sphinx-php.git
1313

1414
script: sphinx-build -nW -b html -d _build/doctrees . _build/html
1515

book/controller.rst

Lines changed: 241 additions & 221 deletions
Large diffs are not rendered by default.

book/doctrine.rst

Lines changed: 162 additions & 116 deletions
Large diffs are not rendered by default.

book/installation.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,7 @@ your `Apache`_ or `Nginx`_ web server as explained in
204204
:doc:`/cookbook/configuration/web_server_configuration`.
205205

206206
When you are finished working on your Symfony application, you can stop the
207-
server with the ``server:stop`` command:
208-
209-
.. code-block:: bash
210-
211-
$ php bin/console server:stop
207+
server by pressing `Ctrl+C` from terminal.
212208

213209
Checking Symfony Application Configuration and Setup
214210
----------------------------------------------------

book/templating.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ Template Naming and Locations
382382
By default, templates can live in two different locations:
383383

384384
``app/Resources/views/``
385-
The applications ``views`` directory can contain application-wide base templates
385+
The application's ``views`` directory can contain application-wide base templates
386386
(i.e. your application's layouts and templates of the application bundle) as
387387
well as templates that override third party bundle templates
388388
(see :ref:`overriding-bundle-templates`).
@@ -616,7 +616,7 @@ articles::
616616
}
617617
}
618618

619-
The ``recentList`` template is perfectly straightforward:
619+
The ``recent_list`` template is perfectly straightforward:
620620

621621
.. configuration-block::
622622

@@ -975,7 +975,7 @@ route:
975975
976976
In this case, you need to specify both the route name (``article_show``) and
977977
a value for the ``{slug}`` parameter. Using this route, revisit the
978-
``recentList`` template from the previous section and link to the articles
978+
``recent_list`` template from the previous section and link to the articles
979979
correctly:
980980

981981
.. configuration-block::
@@ -1053,7 +1053,7 @@ being used and generating the correct paths accordingly.
10531053

10541054
Additionally, if you use the ``asset`` function, Symfony can automatically
10551055
append a query string to your asset, in order to guarantee that updated static
1056-
assets won't be cached when deployed. For example, ``/images/logo.png`` might
1056+
assets won't be loaded from cache after being deployed. For example, ``/images/logo.png`` might
10571057
look like ``/images/logo.png?v2``. For more information, see the :ref:`reference-framework-assets-version`
10581058
configuration option.
10591059

book/translation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,5 +927,5 @@ steps:
927927
.. _`i18n`: https://en.wikipedia.org/wiki/Internationalization_and_localization
928928
.. _`ISO 3166-1 alpha-2`: https://en.wikipedia.org/wiki/ISO_3166-1#Current_codes
929929
.. _`ISO 639-1`: https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
930-
.. _`Translatable Extension`: https://github.com/l3pp4rd/DoctrineExtensions
930+
.. _`Translatable Extension`: http://atlantic18.github.io/DoctrineExtensions/doc/translatable.html
931931
.. _`Translatable Behavior`: https://github.com/KnpLabs/DoctrineBehaviors

components/http_foundation/introduction.rst

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -147,25 +147,28 @@ exist::
147147
// the query string is '?foo=bar'
148148

149149
$request->query->get('foo');
150-
// returns bar
150+
// returns 'bar'
151151

152152
$request->query->get('bar');
153153
// returns null
154154

155-
$request->query->get('bar', 'bar');
156-
// returns 'bar'
155+
$request->query->get('bar', 'baz');
156+
// returns 'baz'
157157

158158
When PHP imports the request query, it handles request parameters like
159159
``foo[bar]=bar`` in a special way as it creates an array. So you can get the
160160
``foo`` parameter and you will get back an array with a ``bar`` element::
161161

162-
// the query string is '?foo[bar]=bar'
162+
// the query string is '?foo[bar]=baz'
163163

164164
$request->query->get('foo');
165-
// returns array('bar' => 'bar')
165+
// returns array('bar' => 'baz')
166166

167167
$request->query->get('foo[bar]');
168-
// returns null
168+
// returns null
169+
170+
$request->query->get('foo')['bar'];
171+
// returns 'baz'
169172

170173
.. _component-foundation-attributes:
171174

@@ -500,7 +503,8 @@ if it should::
500503

501504
BinaryFileResponse::trustXSendfileTypeHeader();
502505

503-
You can still set the ``Content-Type`` of the sent file, or change its ``Content-Disposition``::
506+
With the ``BinaryFileResponse``, you can still set the ``Content-Type`` of the sent file,
507+
or change its ``Content-Disposition``::
504508

505509
$response->headers->set('Content-Type', 'text/plain');
506510
$response->setContentDisposition(

components/var_dumper/introduction.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ You can install the component in 2 different ways:
1717
* :doc:`Install it via Composer </components/using_components>` (``symfony/var-dumper`` on `Packagist`_);
1818
* Use the official Git repository (https://github.com/symfony/var-dumper).
1919

20+
.. note::
21+
22+
If using it inside a Symfony application, make sure that the
23+
DebugBundle is enabled in your ``app/AppKernel.php`` file.
24+
2025
.. _components-var-dumper-dump:
2126

2227
The dump() Function

components/yaml/yaml_format.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ can use double quotes, for these characters it is more convenient to use single
5050
quotes, which avoids having to escape any backslash ``\``:
5151

5252
* ``:``, ``{``, ``}``, ``[``, ``]``, ``,``, ``&``, ``*``, ``#``, ``?``, ``|``,
53-
``-``, ``<``, ``>``, ``=``, ``!``, ``%``, ``@``, ``\```
53+
``-``, ``<``, ``>``, ``=``, ``!``, ``%``, ``@``, `````
5454

5555
The double-quoted style provides a way to express arbitrary strings, by
5656
using ``\`` to escape characters and sequences. For instance, it is very useful

contributing/code/bc.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,6 @@ Change return type No
236236
Add private method Yes
237237
Remove private method Yes
238238
Change name Yes
239-
Reduce visibility Yes
240239
Add argument without a default value Yes
241240
Add argument with a default value Yes
242241
Remove argument Yes

0 commit comments

Comments
 (0)