Skip to content

Commit 5db8386

Browse files
committed
minor #4462 [Reference] Fixed lots of minor things using the review bot (WouterJ)
This PR was merged into the 2.3 branch. Discussion ---------- [Reference] Fixed lots of minor things using the review bot I started working on our review bot. While doing that, I was using some documents that didn't change a lot. I decided it was usefull to have these things fixed in the docs itself :) All are very minor, basic, review things. | Q | A | --- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixed tickets | - Commits ------- 9befcaf Fixed wrong indentation a2c626f Bot fixes
2 parents dbfaac1 + 9befcaf commit 5db8386

File tree

5 files changed

+85
-48
lines changed

5 files changed

+85
-48
lines changed

reference/configuration/assetic.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
AsseticBundle Configuration ("assetic")
55
=======================================
66

7-
Full default Configuration
8-
~~~~~~~~~~~~~~~~~~~~~~~~~~
7+
Full Default Configuration
8+
--------------------------
99

1010
.. configuration-block::
1111

reference/configuration/doctrine.rst

+65-32
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
DoctrineBundle Configuration ("doctrine")
66
=========================================
77

8-
Full default configuration
8+
Full Default Configuration
99
--------------------------
1010

1111
.. configuration-block::
@@ -180,8 +180,10 @@ Full default configuration
180180
<container xmlns="http://symfony.com/schema/dic/services"
181181
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
182182
xmlns:doctrine="http://symfony.com/schema/dic/doctrine"
183-
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
184-
http://symfony.com/schema/dic/doctrine http://symfony.com/schema/dic/doctrine/doctrine-1.0.xsd">
183+
xsi:schemaLocation="http://symfony.com/schema/dic/services
184+
http://symfony.com/schema/dic/services/services-1.0.xsd
185+
http://symfony.com/schema/dic/doctrine
186+
http://symfony.com/schema/dic/doctrine/doctrine-1.0.xsd">
185187
186188
<doctrine:config>
187189
<doctrine:dbal default-connection="default">
@@ -209,16 +211,44 @@ Full default configuration
209211
<doctrine:type name="custom">Acme\HelloBundle\MyCustomType</doctrine:type>
210212
</doctrine:dbal>
211213
212-
<doctrine:orm default-entity-manager="default" auto-generate-proxy-classes="false" proxy-namespace="Proxies" proxy-dir="%kernel.cache_dir%/doctrine/orm/Proxies">
213-
<doctrine:entity-manager name="default" query-cache-driver="array" result-cache-driver="array" connection="conn1" class-metadata-factory-name="Doctrine\ORM\Mapping\ClassMetadataFactory">
214-
<doctrine:metadata-cache-driver type="memcache" host="localhost" port="11211" instance-class="Memcache" class="Doctrine\Common\Cache\MemcacheCache" />
214+
<doctrine:orm
215+
default-entity-manager="default"
216+
auto-generate-proxy-classes="false"
217+
proxy-namespace="Proxies"
218+
proxy-dir="%kernel.cache_dir%/doctrine/orm/Proxies"
219+
>
220+
<doctrine:entity-manager
221+
name="default"
222+
query-cache-driver="array"
223+
result-cache-driver="array"
224+
connection="conn1"
225+
class-metadata-factory-name="Doctrine\ORM\Mapping\ClassMetadataFactory"
226+
>
227+
<doctrine:metadata-cache-driver
228+
type="memcache"
229+
host="localhost"
230+
port="11211"
231+
instance-class="Memcache"
232+
class="Doctrine\Common\Cache\MemcacheCache"
233+
/>
234+
215235
<doctrine:mapping name="AcmeHelloBundle" />
236+
216237
<doctrine:dql>
217-
<doctrine:string-function name="test_string">Acme\HelloBundle\DQL\StringFunction</doctrine:string-function>
218-
<doctrine:numeric-function name="test_numeric">Acme\HelloBundle\DQL\NumericFunction</doctrine:numeric-function>
219-
<doctrine:datetime-function name="test_datetime">Acme\HelloBundle\DQL\DatetimeFunction</doctrine:datetime-function>
238+
<doctrine:string-function name="test_string">
239+
Acme\HelloBundle\DQL\StringFunction
240+
</doctrine:string-function>
241+
242+
<doctrine:numeric-function name="test_numeric">
243+
Acme\HelloBundle\DQL\NumericFunction
244+
</doctrine:numeric-function>
245+
246+
<doctrine:datetime-function name="test_datetime">
247+
Acme\HelloBundle\DQL\DatetimeFunction
248+
</doctrine:datetime-function>
220249
</doctrine:dql>
221250
</doctrine:entity-manager>
251+
222252
<doctrine:entity-manager name="em2" connection="conn2" metadata-cache-driver="apc">
223253
<doctrine:mapping
224254
name="DoctrineExtensions"
@@ -235,8 +265,8 @@ Full default configuration
235265
Configuration Overview
236266
----------------------
237267

238-
This following configuration example shows all the configuration defaults that
239-
the ORM resolves to:
268+
This following configuration example shows all the configuration defaults
269+
that the ORM resolves to:
240270

241271
.. code-block:: yaml
242272
@@ -258,8 +288,8 @@ certain classes, but those are for very advanced use-cases only.
258288
Caching Drivers
259289
~~~~~~~~~~~~~~~
260290

261-
For the caching drivers you can specify the values "array", "apc", "memcache", "memcached",
262-
"xcache" or "service".
291+
For the caching drivers you can specify the values "array", "apc", "memcache",
292+
"memcached", "xcache" or "service".
263293

264294
The following example shows an overview of the caching configurations:
265295

@@ -282,34 +312,34 @@ Mapping Configuration
282312
~~~~~~~~~~~~~~~~~~~~~
283313

284314
Explicit definition of all the mapped entities is the only necessary
285-
configuration for the ORM and there are several configuration options that you
286-
can control. The following configuration options exist for a mapping:
315+
configuration for the ORM and there are several configuration options that
316+
you can control. The following configuration options exist for a mapping:
287317

288318
* ``type`` One of ``annotation``, ``xml``, ``yml``, ``php`` or ``staticphp``.
289319
This specifies which type of metadata type your mapping uses.
290320

291-
* ``dir`` Path to the mapping or entity files (depending on the driver). If
292-
this path is relative it is assumed to be relative to the bundle root. This
293-
only works if the name of your mapping is a bundle name. If you want to use
294-
this option to specify absolute paths you should prefix the path with the
295-
kernel parameters that exist in the DIC (for example %kernel.root_dir%).
321+
* ``dir`` Path to the mapping or entity files (depending on the driver).
322+
If this path is relative it is assumed to be relative to the bundle root.
323+
This only works if the name of your mapping is a bundle name. If you want
324+
to use this option to specify absolute paths you should prefix the path
325+
with the kernel parameters that exist in the DIC (for example ``%kernel.root_dir%``).
296326

297327
* ``prefix`` A common namespace prefix that all entities of this mapping
298328
share. This prefix should never conflict with prefixes of other defined
299-
mappings otherwise some of your entities cannot be found by Doctrine. This
300-
option defaults to the bundle namespace + ``Entity``, for example for an
301-
application bundle called ``AcmeHelloBundle`` prefix would be
329+
mappings otherwise some of your entities cannot be found by Doctrine.
330+
This option defaults to the bundle namespace + ``Entity``, for example
331+
for an application bundle called ``AcmeHelloBundle`` prefix would be
302332
``Acme\HelloBundle\Entity``.
303333

304334
* ``alias`` Doctrine offers a way to alias entity namespaces to simpler,
305-
shorter names to be used in DQL queries or for Repository access. When using
306-
a bundle the alias defaults to the bundle name.
335+
shorter names to be used in DQL queries or for Repository access. When
336+
using a bundle the alias defaults to the bundle name.
307337

308-
* ``is_bundle`` This option is a derived value from ``dir`` and by default is
309-
set to true if dir is relative proved by a ``file_exists()`` check that
310-
returns false. It is false if the existence check returns true. In this case
311-
an absolute path was specified and the metadata files are most likely in a
312-
directory outside of a bundle.
338+
* ``is_bundle`` This option is a derived value from ``dir`` and by default
339+
is set to true if dir is relative proved by a ``file_exists()`` check
340+
that returns false. It is false if the existence check returns true. In
341+
this case an absolute path was specified and the metadata files are most
342+
likely in a directory outside of a bundle.
313343

314344
.. index::
315345
single: Configuration; Doctrine DBAL
@@ -363,8 +393,11 @@ The following block shows all possible configuration keys:
363393
<container xmlns="http://symfony.com/schema/dic/services"
364394
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
365395
xmlns:doctrine="http://symfony.com/schema/dic/doctrine"
366-
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
367-
http://symfony.com/schema/dic/doctrine http://symfony.com/schema/dic/doctrine/doctrine-1.0.xsd">
396+
xsi:schemaLocation="http://symfony.com/schema/dic/services
397+
http://symfony.com/schema/dic/services/services-1.0.xsd
398+
http://symfony.com/schema/dic/doctrine
399+
http://symfony.com/schema/dic/doctrine/doctrine-1.0.xsd"
400+
>
368401
369402
<doctrine:config>
370403
<doctrine:dbal

reference/configuration/kernel.rst

+8-7
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ Charset
2222

2323
**type**: ``string`` **default**: ``UTF-8``
2424

25-
This returns the charset that is used in the application. To change it, override the
26-
:method:`Symfony\\Component\\HttpKernel\\Kernel::getCharset` method and return another
27-
charset, for instance::
25+
This returns the charset that is used in the application. To change it,
26+
override the :method:`Symfony\\Component\\HttpKernel\\Kernel::getCharset`
27+
method and return another charset, for instance::
2828

2929
// app/AppKernel.php
3030

@@ -40,12 +40,13 @@ charset, for instance::
4040
Kernel Name
4141
~~~~~~~~~~~
4242

43-
**type**: ``string`` **default**: ``app`` (i.e. the directory name holding the kernel class)
43+
**type**: ``string`` **default**: ``app`` (i.e. the directory name holding
44+
the kernel class)
4445

4546
To change this setting, override the :method:`Symfony\\Component\\HttpKernel\\Kernel::getName`
46-
method. Alternatively, move your kernel into a different directory. For example,
47-
if you moved the kernel into a ``foo`` directory (instead of ``app``), the
48-
kernel name will be ``foo``.
47+
method. Alternatively, move your kernel into a different directory. For
48+
example, if you moved the kernel into a ``foo`` directory (instead of ``app``),
49+
the kernel name will be ``foo``.
4950

5051
The name of the kernel isn't usually directly important - it's used in the
5152
generation of cache files. If you have an application with multiple kernels,

reference/configuration/monolog.rst

+6-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
MonologBundle Configuration ("monolog")
55
=======================================
66

7-
Full default Configuration
7+
Full Default Configuration
88
--------------------------
99

1010
.. configuration-block::
@@ -67,8 +67,11 @@ Full default Configuration
6767
<container xmlns="http://symfony.com/schema/dic/services"
6868
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6969
xmlns:monolog="http://symfony.com/schema/dic/monolog"
70-
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
71-
http://symfony.com/schema/dic/monolog http://symfony.com/schema/dic/monolog/monolog-1.0.xsd">
70+
xsi:schemaLocation="http://symfony.com/schema/dic/services
71+
http://symfony.com/schema/dic/services/services-1.0.xsd
72+
http://symfony.com/schema/dic/monolog
73+
http://symfony.com/schema/dic/monolog/monolog-1.0.xsd"
74+
>
7275
7376
<monolog:config>
7477
<monolog:handler

reference/configuration/security.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,8 @@ The Login Form and Process
253253
``use_forward`` is set to ``true``) when they try to access a
254254
protected resource but isn't fully authenticated.
255255

256-
This path **must** be accessible by a normal, un-authenticated user, else
257-
you may create a redirect loop. For details, see
256+
This path **must** be accessible by a normal, un-authenticated user,
257+
else you may create a redirect loop. For details, see
258258
":ref:`Avoid Common Pitfalls <book-security-common-pitfalls>`".
259259

260260
* ``check_path`` (type: ``string``, default: ``/login_check``)
@@ -266,8 +266,8 @@ The Login Form and Process
266266
a separate firewall just for ``check_path`` URL).
267267

268268
* ``use_forward`` (type: ``Boolean``, default: ``false``)
269-
If you'd like the user to be forwarded to the login form instead of being
270-
redirected, set this option to ``true``.
269+
If you'd like the user to be forwarded to the login form instead of
270+
being redirected, set this option to ``true``.
271271

272272
* ``username_parameter`` (type: ``string``, default: ``_username``)
273273
This is the field name that you should give to the username field of

0 commit comments

Comments
 (0)