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',

cookbook/form/form_customization.rst

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,8 @@ form is rendered.
436436
'form' => array('resources' => array(
437437
'AcmeDemoBundle:Form:fields.html.twig',
438438
)),
439-
...,
439+
440+
// ...
440441
));
441442
442443
By default, Twig uses a *div* layout when rendering forms. Some people, however,
@@ -470,7 +471,8 @@ resource to use such a layout:
470471
'form' => array('resources' => array(
471472
'form_table_layout.html.twig',
472473
)),
473-
...,
474+
475+
// ...
474476
));
475477
476478
If you only want to make the change in one template, add the following line to
@@ -525,7 +527,8 @@ form is rendered.
525527
array('resources' => array(
526528
'AcmeDemoBundle:Form',
527529
))),
528-
...,
530+
531+
// ...
529532
));
530533
531534
By default, the PHP engine uses a *div* layout when rendering forms. Some people,
@@ -563,7 +566,8 @@ resource to use such a layout:
563566
array('resources' => array(
564567
'FrameworkBundle:FormTable',
565568
))),
566-
...,
569+
570+
// ...
567571
));
568572
569573
If you only want to make the change in one template, add the following line to

cookbook/security/form_login.rst

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ the following config:
6767
$container->loadFromExtension('security', array(
6868
'firewalls' => array(
6969
'main' => array('form_login' => array(
70-
...,
70+
// ...
71+
7172
'default_target_path' => '/admin',
7273
)),
7374
),
@@ -111,7 +112,8 @@ of what URL they had requested previously by setting the
111112
$container->loadFromExtension('security', array(
112113
'firewalls' => array(
113114
'main' => array('form_login' => array(
114-
...,
115+
// ...
116+
115117
'always_use_default_target_path' => true,
116118
)),
117119
),
@@ -153,7 +155,8 @@ this by setting ``use_referer`` to true (it defaults to false):
153155
$container->loadFromExtension('security', array(
154156
'firewalls' => array(
155157
'main' => array('form_login' => array(
156-
...,
158+
// ...
159+
157160
'use_referer' => true,
158161
)),
159162
),
@@ -282,7 +285,8 @@ following config:
282285
$container->loadFromExtension('security', array(
283286
'firewalls' => array(
284287
'main' => array('form_login' => array(
285-
...,
288+
// ...
289+
286290
'failure_path' => login_failure,
287291
)),
288292
),

cookbook/security/securing_services.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,8 @@ documentation.
260260
261261
// app/config/config.php
262262
$container->loadFromExtension('jms_security_extra', array(
263-
...,
263+
// ...
264+
264265
'secure_all_services' => true,
265266
));
266267

cookbook/symfony1.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ namespace in the ``vendor/bundle`` directory:
147147
148148
// ...
149149
$loader->registerNamespaces(array(
150-
...,
150+
// ...
151+
151152
'Sensio' => __DIR__.'/../vendor/bundles',
152153
));
153154

cookbook/templating/PHP.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ your application configuration file:
3838
.. code-block:: php
3939
4040
$container->loadFromExtension('framework', array(
41-
...,
41+
// ...
42+
4243
'templating' => array(
4344
'engines' => array('twig', 'php'),
4445
),

0 commit comments

Comments
 (0)