Skip to content

Commit 9c7c15b

Browse files
committed
Merge remote-tracking branch 'upstream/2.7' into 2.7
2 parents e9f5123 + d117184 commit 9c7c15b

File tree

82 files changed

+334
-410
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+334
-410
lines changed

bundles.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ are used by your application (including the core Symfony bundles).
5959

6060
.. tip::
6161

62-
A bundle can live *anywhere* as long as it can be autoloaded (via the
63-
autoloader configured at ``app/autoload.php``).
62+
A bundle can live *anywhere* as long as it can be autoloaded (via the
63+
autoloader configured at ``app/autoload.php``).
6464

6565
Creating a Bundle
6666
-----------------
@@ -91,10 +91,10 @@ called ``AcmeTestBundle.php``::
9191

9292
.. tip::
9393

94-
The name AcmeTestBundle follows the standard
95-
:ref:`Bundle naming conventions <bundles-naming-conventions>`. You could
96-
also choose to shorten the name of the bundle to simply TestBundle by naming
97-
this class TestBundle (and naming the file ``TestBundle.php``).
94+
The name AcmeTestBundle follows the standard
95+
:ref:`Bundle naming conventions <bundles-naming-conventions>`. You could
96+
also choose to shorten the name of the bundle to simply TestBundle by naming
97+
this class TestBundle (and naming the file ``TestBundle.php``).
9898

9999
This empty class is the only piece you need to create the new bundle. Though
100100
commonly empty, this class is powerful and can be used to customize the behavior
@@ -130,9 +130,9 @@ tools later.
130130

131131
.. tip::
132132

133-
Whenever creating a new bundle or using a third-party bundle, always make
134-
sure the bundle has been enabled in ``registerBundles()``. When using
135-
the ``generate:bundle`` command, this is done for you.
133+
Whenever creating a new bundle or using a third-party bundle, always make
134+
sure the bundle has been enabled in ``registerBundles()``. When using
135+
the ``generate:bundle`` command, this is done for you.
136136

137137
Bundle Directory Structure
138138
--------------------------

bundles/best_practices.rst

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -116,21 +116,21 @@ The following classes and files have specific emplacements (some are mandatory
116116
and others are just conventions followed by most developers):
117117

118118
=================================================== ========================================
119-
Type Directory
119+
Type Directory
120120
=================================================== ========================================
121-
Commands ``Command/``
122-
Controllers ``Controller/``
123-
Service Container Extensions ``DependencyInjection/``
121+
Commands ``Command/``
122+
Controllers ``Controller/``
123+
Service Container Extensions ``DependencyInjection/``
124124
Doctrine ORM entities (when not using annotations) ``Entity/``
125125
Doctrine ODM documents (when not using annotations) ``Document/``
126-
Event Listeners ``EventListener/``
127-
Configuration ``Resources/config/``
128-
Web Resources (CSS, JS, images) ``Resources/public/``
129-
Translation files ``Resources/translations/``
126+
Event Listeners ``EventListener/``
127+
Configuration ``Resources/config/``
128+
Web Resources (CSS, JS, images) ``Resources/public/``
129+
Translation files ``Resources/translations/``
130130
Validation (when not using annotations) ``Resources/config/validation/``
131131
Serialization (when not using annotations) ``Resources/config/serialization/``
132-
Templates ``Resources/views/``
133-
Unit and Functional Tests ``Tests/``
132+
Templates ``Resources/views/``
133+
Unit and Functional Tests ``Tests/``
134134
=================================================== ========================================
135135

136136
Classes
@@ -174,19 +174,19 @@ the ``Tests/`` directory. Tests should follow the following principles:
174174

175175
.. note::
176176

177-
A test suite must not contain ``AllTests.php`` scripts, but must rely on the
178-
existence of a ``phpunit.xml.dist`` file.
177+
A test suite must not contain ``AllTests.php`` scripts, but must rely on the
178+
existence of a ``phpunit.xml.dist`` file.
179179

180180
Documentation
181181
-------------
182182

183183
All classes and functions must come with full PHPDoc.
184184

185-
Extensive documentation should also be provided in the ``Resources/doc/``
185+
Extensive documentation should also be provided in the ``Resources/doc/``
186186
directory.
187-
The index file (for example ``Resources/doc/index.rst`` or
188-
``Resources/doc/index.md``) is the only mandatory file and must be the entry
189-
point for the documentation. The
187+
The index file (for example ``Resources/doc/index.rst`` or
188+
``Resources/doc/index.md``) is the only mandatory file and must be the entry
189+
point for the documentation. The
190190
:doc:`reStructuredText (rST) </contributing/documentation/format>` is the format
191191
used to render the documentation on symfony.com.
192192

bundles/configuration.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ bundle configuration would look like:
120120
For parameter handling within a dependency injection container see
121121
:doc:`/configuration/using_parameters_in_dic`.
122122

123-
124123
Processing the ``$configs`` Array
125124
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
126125

@@ -275,7 +274,6 @@ In your extension, you can load this and dynamically set its arguments::
275274
$def->replaceArgument(1, $config['twitter']['client_secret']);
276275
}
277276

278-
279277
.. tip::
280278

281279
Instead of calling ``processConfiguration()`` in your extension each time you

bundles/inheritance.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ The same goes for routing files and some other resources.
9999

100100
.. caution::
101101

102-
Translation and validation files do not work in the same way as described
103-
above. Read ":ref:`override-translations`" if you want to learn how to
104-
override translations and see ":ref:`override-validation`" for tricks to
105-
override the validation.
102+
Translation and validation files do not work in the same way as described
103+
above. Read ":ref:`override-translations`" if you want to learn how to
104+
override translations and see ":ref:`override-validation`" for tricks to
105+
override the validation.
106106

107107
.. _`FOSUserBundle`: https://github.com/friendsofsymfony/fosuserbundle

bundles/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ version, include it as the second argument of the `composer require`_ command:
4848
B) Enable the Bundle
4949
--------------------
5050

51-
At this point, the bundle is installed in your Symfony project (e.g.
51+
At this point, the bundle is installed in your Symfony project (e.g.
5252
``vendor/friendsofsymfony/``) and the autoloader recognizes its classes.
5353
The only thing you need to do now is register the bundle in ``AppKernel``::
5454

changelog.rst

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.. index::
22
single: CHANGELOG
3-
3+
44
.. !! CAUTION !!
55
This file is automatically generated. Do not add new changelog
66
items when preparing a pull request.
@@ -69,7 +69,6 @@ Minor Documentation Changes
6969
* `#7014 <https://github.com/symfony/symfony-docs/pull/7014>`_ Add a note about Filesystem:mkdir behavior (mickaelandrieu)
7070
* `#6886 <https://github.com/symfony/symfony-docs/pull/6886>`_ Update controllers.rst (asandjivy)
7171

72-
7372
September, 2016
7473
---------------
7574

@@ -81,7 +80,6 @@ New Documentation
8180
Fixed Documentation
8281
~~~~~~~~~~~~~~~~~~~
8382

84-
8583
Minor Documentation Changes
8684
~~~~~~~~~~~~~~~~~~~~~~~~~~~
8785

@@ -121,7 +119,6 @@ Minor Documentation Changes
121119
* `#6945 <https://github.com/symfony/symfony-docs/pull/6945>`_ Fixed indentation issues in alias_private article (javiereguiluz)
122120
* `#6955 <https://github.com/symfony/symfony-docs/pull/6955>`_ Typo in the class name. (pythagor)
123121

124-
125122
August, 2016
126123
------------
127124

@@ -197,7 +194,6 @@ Minor Documentation Changes
197194
* `#6810 <https://github.com/symfony/symfony-docs/pull/6810>`_ Fixed the redirection of the previous "performance" book chapter (javiereguiluz)
198195
* `#6816 <https://github.com/symfony/symfony-docs/pull/6816>`_ Added all the missing "index pages" redirections (javiereguiluz)
199196

200-
201197
July, 2016
202198
----------
203199

@@ -288,7 +284,6 @@ Minor Documentation Changes
288284
* `#5892 <https://github.com/symfony/symfony-docs/pull/5892>`_ Updated the session proxy article (javiereguiluz)
289285
* `#6697 <https://github.com/symfony/symfony-docs/pull/6697>`_ [Asset] add versionadded directive (xabbuh)
290286

291-
292287
June, 2016
293288
----------
294289

@@ -338,7 +333,6 @@ Minor Documentation Changes
338333
* `#6627 <https://github.com/symfony/symfony-docs/pull/6627>`_ Fixed a typo in cookbook/security/entity_provider (michaeldegroot)
339334
* `#6618 <https://github.com/symfony/symfony-docs/pull/6618>`_ Added a note about coding standards and method arguments (javiereguiluz)
340335

341-
342336
May, 2016
343337
---------
344338

@@ -409,7 +403,6 @@ Minor Documentation Changes
409403
* `#6525 <https://github.com/symfony/symfony-docs/pull/6525>`_ [Contributing] use more precise version checker URL (xabbuh)
410404
* `#6528 <https://github.com/symfony/symfony-docs/pull/6528>`_ Fixed a minor indentation issue (javiereguiluz)
411405

412-
413406
April, 2016
414407
-----------
415408

@@ -454,7 +447,6 @@ Minor Documentation Changes
454447
* `#6420 <https://github.com/symfony/symfony-docs/pull/6420>`_ Added tip for optional second parameter for form submissions. (Michael Phillips)
455448
* `#6418 <https://github.com/symfony/symfony-docs/pull/6418>`_ fix spelling of the flashBag() method (xabbuh)
456449

457-
458450
March, 2016
459451
-----------
460452

@@ -514,7 +506,6 @@ Minor Documentation Changes
514506
* `#6267 <https://github.com/symfony/symfony-docs/pull/6267>`_ [Form] fix 'data_class' option in EntityType (HeahDude)
515507
* `#6281 <https://github.com/symfony/symfony-docs/pull/6281>`_ Change isValid to isSubmitted. (mustafaaloko)
516508

517-
518509
February, 2016
519510
--------------
520511

@@ -585,7 +576,6 @@ Minor Documentation Changes
585576
* `#6208 <https://github.com/symfony/symfony-docs/pull/6208>`_ Replace references of PSR-0 with PSR-4 (opdavies)
586577
* `#6190 <https://github.com/symfony/symfony-docs/pull/6190>`_ Fix redundant command line sample (sylozof)
587578

588-
589579
January, 2016
590580
-------------
591581

@@ -636,7 +626,6 @@ Minor Documentation Changes
636626
* `#6102 <https://github.com/symfony/symfony-docs/pull/6102>`_ promoted xabbuh as merger on the Yaml component (fabpot)
637627
* `#6013 <https://github.com/symfony/symfony-docs/pull/6013>`_ [2.7][Form] placeholder option: replace "in favor" misuses (ogizanagi)
638628

639-
640629
December, 2015
641630
--------------
642631

@@ -709,7 +698,6 @@ Minor Documentation Changes
709698
* `#5972 <https://github.com/symfony/symfony-docs/pull/5972>`_ Add isSubmitted call (DanielSiepmann)
710699
* `#5961 <https://github.com/symfony/symfony-docs/pull/5961>`_ update from_flat_php_to_symfony2.rst (thao-witkam)
711700

712-
713701
November, 2015
714702
--------------
715703

@@ -772,7 +760,6 @@ Minor Documentation Changes
772760
* `#5852 <https://github.com/symfony/symfony-docs/pull/5852>`_ Fix doc for 2.6+, `server:start` replace `...:run` (Kevinrob)
773761
* `#5837 <https://github.com/symfony/symfony-docs/pull/5837>`_ Corrected link to ConEmu (dritter)
774762

775-
776763
October, 2015
777764
-------------
778765

@@ -829,7 +816,6 @@ Minor Documentation Changes
829816
* `#5684 <https://github.com/symfony/symfony-docs/pull/5684>`_ Fix delivery_whitelist regex (gonzalovilaseca)
830817
* `#5742 <https://github.com/symfony/symfony-docs/pull/5742>`_ incorrect: severity is an array key here and not a constant (lbayerl)
831818

832-
833819
September, 2015
834820
---------------
835821

@@ -886,7 +872,6 @@ Minor Documentation Changes
886872
* `#5571 <https://github.com/symfony/symfony-docs/pull/5571>`_ Some small fixes for upload files article (WouterJ)
887873
* `#5660 <https://github.com/symfony/symfony-docs/pull/5660>`_ Improved "Community Reviews" page (webmozart)
888874

889-
890875
August, 2015
891876
------------
892877

@@ -938,7 +923,6 @@ Minor Documentation Changes
938923
* `#5601 <https://github.com/symfony/symfony-docs/pull/5601>`_ Update lazy_services.rst (baziak3)
939924
* `#5591 <https://github.com/symfony/symfony-docs/pull/5591>`_ Update templating.rst: lint:twig instead of twig:lint in 2.7 (alexwybraniec)
940925

941-
942926
July, 2015
943927
----------
944928

@@ -1024,7 +1008,6 @@ Minor Documentation Changes
10241008
* `#5473 <https://github.com/symfony/symfony-docs/pull/5473>`_ --dev is default and causes a warning (DQNEO)
10251009
* `#5474 <https://github.com/symfony/symfony-docs/pull/5474>`_ typo in components/translation/instruction.rst (beesofts)
10261010

1027-
10281011
June, 2015
10291012
----------
10301013

@@ -1120,7 +1103,6 @@ Minor Documentation Changes
11201103
* `#5357 <https://github.com/symfony/symfony-docs/pull/5357>`_ [Form] Replace deprecated form_enctype by form_start (JMLamodiere)
11211104
* `#5359 <https://github.com/symfony/symfony-docs/pull/5359>`_ Bumped version of proxy manager to stable release (peterrehm)
11221105

1123-
11241106
May, 2015
11251107
---------
11261108

@@ -1214,7 +1196,6 @@ Minor Documentation Changes
12141196
* `#5238 <https://github.com/symfony/symfony-docs/pull/5238>`_ Fixed typo and removed outdated imports (nomack84)
12151197
* `#5240 <https://github.com/symfony/symfony-docs/pull/5240>`_ [Cookbook][Email] revert #4808 (xabbuh)
12161198

1217-
12181199
April, 2015
12191200
-----------
12201201

components/asset.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
The Asset Component
66
===================
77

8-
The Asset component manages URL generation and versioning of web assets such
9-
as CSS stylesheets, JavaScript files and image files.
8+
The Asset component manages URL generation and versioning of web assets such
9+
as CSS stylesheets, JavaScript files and image files.
1010

1111
.. versionadded:: 2.7
1212
The Asset component was introduced in Symfony 2.7.

components/console/helpers/questionhelper.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ will be autocompleted as the user types::
174174
{
175175
// ...
176176
$helper = $this->getHelper('question');
177-
177+
178178
$bundles = array('AcmeDemoBundle', 'AcmeBlogBundle', 'AcmeStoreBundle');
179179
$question = new Question('Please enter the name of a bundle', 'FooBundle');
180180
$question->setAutocompleterValues($bundles);
@@ -195,7 +195,7 @@ convenient for passwords::
195195
{
196196
// ...
197197
$helper = $this->getHelper('question');
198-
198+
199199
$question = new Question('What is the database password?');
200200
$question->setHidden(true);
201201
$question->setHiddenFallback(false);
@@ -230,7 +230,7 @@ method::
230230
{
231231
// ...
232232
$helper = $this->getHelper('question');
233-
233+
234234
$question = new Question('Please enter the name of the bundle', 'AppBundle');
235235
$question->setNormalizer(function ($value) {
236236
// $value can be null here
@@ -240,7 +240,6 @@ method::
240240
$name = $helper->ask($input, $output, $question);
241241
}
242242

243-
244243
.. caution::
245244

246245
The normalizer is called first and the returned value is used as the input

components/dom_crawler.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,13 +339,13 @@ a :class:`Symfony\\Component\\DomCrawler\\Form` object that represents the
339339
form that the button lives in::
340340

341341
// button example: <button id="my-super-button" type="submit">My super button</button>
342-
342+
343343
// you can get button by its label
344344
$form = $crawler->selectButton('My super button')->form();
345-
345+
346346
// or by button id (#my-super-button) if the button doesn't have a label
347347
$form = $crawler->selectButton('my-super-button')->form();
348-
348+
349349
// or you can filter the whole form, for example a form has a class attribute: <form class="form-vertical" method="POST">
350350
$crawler->filter('.form-vertical')->form();
351351

components/event_dispatcher.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -405,14 +405,14 @@ the dispatcher to stop all propagation of the event to future listeners
405405
inside a listener via the
406406
:method:`Symfony\\Component\\EventDispatcher\\Event::stopPropagation` method::
407407

408-
use Acme\Store\Event\OrderPlacedEvent;
408+
use Acme\Store\Event\OrderPlacedEvent;
409409

410-
public function onStoreOrder(OrderPlacedEvent $event)
411-
{
412-
// ...
410+
public function onStoreOrder(OrderPlacedEvent $event)
411+
{
412+
// ...
413413

414-
$event->stopPropagation();
415-
}
414+
$event->stopPropagation();
415+
}
416416

417417
Now, any listeners to ``order.placed`` that have not yet been called will
418418
*not* be called.

components/expression_language/extending.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ to add custom functions. To do so, you can create a new expression provider by
6464
creating a class that implements
6565
:class:`Symfony\\Component\\ExpressionLanguage\\ExpressionFunctionProviderInterface`.
6666

67-
This interface requires one method:
67+
This interface requires one method:
6868
:method:`Symfony\\Component\\ExpressionLanguage\\ExpressionFunctionProviderInterface::getFunctions`,
6969
which returns an array of expression functions (instances of
7070
:class:`Symfony\\Component\\ExpressionLanguage\\ExpressionFunction`) to

components/finder.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
The Finder Component
66
====================
77

8-
The Finder component finds files and directories via an intuitive fluent
9-
interface.
8+
The Finder component finds files and directories via an intuitive fluent
9+
interface.
1010

1111
Installation
1212
------------

0 commit comments

Comments
 (0)