Skip to content

Commit 03619f9

Browse files
committed
Merge pull request #2243 from WouterJ/revert_standard
Reverted array folding standard
2 parents 376f06e + 4f4f16b commit 03619f9

File tree

15 files changed

+47
-33
lines changed

15 files changed

+47
-33
lines changed

book/security.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1838,7 +1838,7 @@ setting:
18381838
$container->loadFromExtension('security', array(
18391839
'firewalls' => array(
18401840
'main'=> array(
1841-
...,
1841+
// ...
18421842
'switch_user' => array('role' => 'ROLE_ADMIN', 'parameter' => '_want_to_be_this_user'),
18431843
),
18441844
),

book/service_container.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,8 @@ invokes the service container extension inside the ``FrameworkBundle``:
490490
'form' => array(),
491491
'csrf-protection' => array(),
492492
'router' => array('resource' => '%kernel.root_dir%/config/routing.php'),
493-
...,
493+
494+
// ...
494495
));
495496
496497
When the configuration is parsed, the container looks for an extension that

book/templating.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,8 @@ configuration file:
10211021
10221022
// app/config/config.php
10231023
$container->loadFromExtension('framework', array(
1024-
...,
1024+
// ...
1025+
10251026
'templating' => array(
10261027
'engines' => array('twig'),
10271028
),

components/security/authentication.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ receives an array of encoders::
180180
$encoders = array(
181181
'Symfony\\Component\\Security\\Core\\User\\User' => $defaultEncoder,
182182
'Acme\\Entity\\LegacyUser' => $weakEncoder,
183-
...,
183+
184+
// ...
184185
);
185186

186187
$encoderFactory = new EncoderFactory($encoders);

contributing/documentation/overview.rst

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -188,17 +188,10 @@ An example::
188188
}
189189
}
190190

191-
.. note::
192-
193-
* In Yaml you should put a space after ``{`` and before ``}`` (e.g. ``{ _controller: ... }``),
194-
but this should not be done in Twig (e.g. ``{'hello' : 'value'}``).
195-
* An array item is a part of a line, not a complete line. So you should
196-
not use ``// ...`` but ``...,`` (the comma because of the Coding Standards)::
191+
.. caution::
197192

198-
array(
199-
'some value',
200-
...,
201-
)
193+
In Yaml you should put a space after ``{`` and before ``}`` (e.g. ``{ _controller: ... }``),
194+
but this should not be done in Twig (e.g. ``{'hello' : 'value'}``).
202195

203196
Reporting an Issue
204197
------------------

cookbook/configuration/environments.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ activated by modifying the default value in the ``dev`` configuration file:
115115
116116
$container->loadFromExtension('web_profiler', array(
117117
'toolbar' => true,
118-
...,
118+
119+
// ...
119120
));
120121
121122
.. index::
@@ -205,9 +206,10 @@ environment by using this code and changing the environment string.
205206
$container->loadFromExtension('doctrine', array(
206207
'dbal' => array(
207208
'logging' => '%kernel.debug%',
208-
...,
209+
210+
// ...
209211
),
210-
...
212+
// ...
211213
));
212214
213215
.. index::

cookbook/configuration/pdo_session_storage.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ configuration format of your choice):
8282
$container->loadFromExtension('framework', array(
8383
// ...
8484
'session' => array(
85-
...,
85+
// ...
86+
8687
'storage_id' => 'session.storage.pdo',
8788
),
8889
));

cookbook/doctrine/custom_dql_functions.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,12 @@ In Symfony, you can register your custom DQL functions as follows:
5959
// app/config/config.php
6060
$container->loadFromExtension('doctrine', array(
6161
'orm' => array(
62-
...,
62+
// ...
63+
6364
'entity_managers' => array(
6465
'default' => array(
65-
...,
66+
// ...
67+
6668
'dql' => array(
6769
'string_functions' => array(
6870
'test_string' => 'Acme\HelloBundle\DQL\StringFunction',

cookbook/email/email.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ the power of the `Swiftmailer`_ library.
1616
public function registerBundles()
1717
{
1818
$bundles = array(
19-
...,
19+
// ...
20+
2021
new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
2122
);
2223

cookbook/email/spool.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ In order to use the spool, use the following configuration:
4747
4848
// app/config/config.php
4949
$container->loadFromExtension('swiftmailer', array(
50-
...,
50+
// ...
51+
5152
'spool' => array(
5253
'type' => 'file',
5354
'path' => '/path/to/spool',

0 commit comments

Comments
 (0)