8000 minor #18293 Not add quote in default values (alamirault) · symfony/symfony-docs@245dd26 · GitHub
[go: up one dir, main page]

Skip to content

Commit 245dd26

Browse files
committed
minor #18293 Not add quote in default values (alamirault)
This PR was merged into the 5.4 branch. Discussion ---------- Not add quote in default values Default values are sometime without quotes and sometime with. For example in this page https://symfony.com/doc/5.4/reference/configuration/security.html#logout This PR always remove quotes (it seems to be the rule) Regex `**default**: ``'` Commits ------- 9de751c Not add quote in default values
2 parents 3f95ef1 + 9de751c commit 245dd26

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

reference/configuration/framework.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ is disabled. This can be either a template name or the content itself.
740740
path
741741
....
742742

743-
**type**: ``string`` **default**: ``'/_fragment'``
743+
**type**: ``string`` **default**: ``/_fragment``
744744

745745
The path prefix for fragments. The fragment listener will only be executed
746746
when the request starts with this path.
@@ -1357,7 +1357,7 @@ requests (and not on the subrequests).
13571357
dsn
13581358
...
13591359

1360-
**type**: ``string`` **default**: ``'file:%kernel.cache_dir%/profiler'``
1360+
**type**: ``string`` **default**: ``file:%kernel.cache_dir%/profiler``
13611361

13621362
The DSN where to store the profiling information.
13631363

@@ -1553,7 +1553,7 @@ session
15531553
storage_factory_id
15541554
..................
15551555

1556-
**type**: ``string`` **default**: ``'session.storage.factory.native'``
1556+
**type**: ``string`` **default**: ``session.storage.factory.native``
15571557

15581558
The service ID used for creating the ``SessionStorageInterface`` that stores
15591559
the session. This service is available in the Symfony application via the
@@ -1574,7 +1574,7 @@ To see a list of all available storages, run:
15741574
handler_id
15751575
..........
15761576

1577-
**type**: ``string`` **default**: ``'session.handler.native_file'``
1577+
**type**: ``string`` **default**: ``session.handler.native_file``
15781578

15791579
The service id used for session storage. The default value ``'session.handler.native_file'``
15801580
will let Symfony manage the sessions itself using files to store the session metadata.
@@ -1666,7 +1666,7 @@ to the cookie specification.
16661666
cookie_samesite
16671667
...............
16681668

1669-
**type**: ``string`` or ``null`` **default**: ``'lax'``
1669+
**type**: ``string`` or ``null`` **default**: ``lax``
16701670

16711671
It controls the way cookies are sent when the HTTP request did not originate
16721672
from the same domain that is associated with the cookies. Setting this option is
@@ -1701,7 +1701,7 @@ The possible values for this option are:
17011701
cookie_secure
17021702
.............
17031703

1704-
**type**: ``boolean`` or ``'auto'`` **default**: ``'auto'``
1704+
**type**: ``boolean`` or ``'auto'`` **default**: ``auto``
17051705

17061706
This determines whether cookies should only be sent over secure connections. In
17071707
addition to ``true`` and ``false``, there's a special ``'auto'`` value that
@@ -2702,7 +2702,7 @@ annotations
27022702
cache
27032703
.....
27042704

2705-
**type**: ``string`` **default**: ``'php_array'``
2705+
**type**: ``string`` **default**: ``php_array``
27062706

27072707
This option can be one of the following values:
27082708

@@ -2722,7 +2722,7 @@ a service id
27222722
file_cache_dir
27232723
..............
27242724

2725-
**type**: ``string`` **default**: ``'%kernel.cache_dir%/annotations'``
2725+
**type**: ``string`` **default**: ``%kernel.cache_dir%/annotations``
27262726

27272727
The directory to store cache files for annotations, in case
27282728
``annotations.cache`` is set to ``'file'``.
@@ -3493,7 +3493,7 @@ marking_store
34933493

34943494
Each marking store can define any of these options:
34953495

3496-
* ``property`` (**type**: ``string`` **default**: ``'marking'``)
3496+
* ``property`` (**type**: ``string`` **default**: ``marking``)
34973497
* ``service`` (**type**: ``string``)
34983498
* ``type`` (**type**: ``string`` **allow value**: ``'method'``)
34993499

reference/configuration/security.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ success_handler
494494
:class:`Symfony\\Component\\Security\\Http\\Event\\LogoutEvent`
495495
instead.
496496

497-
**type**: ``string`` **default**: ``'security.logout.success_handler'``
497+
**type**: ``string`` **default**: ``security.logout.success_handler``
498498

499499
The service ID used for handling a successful logout. The service must implement
500500
:class:`Symfony\\Component\\Security\\Http\\Logout\\LogoutSuccessHandlerInterface`.
@@ -506,7 +506,7 @@ If it is set, the logout ``target`` option will be ignored.
506506
csrf_parameter
507507
..............
508508

509-
**type**: ``string`` **default**: ``'_csrf_token'``
509+
**type**: ``string`` **default**: ``_csrf_token``
510510

511511
The name of the parameter that stores the CSRF token value.
512512

@@ -521,7 +521,7 @@ default service whose ID is ``security.csrf.token_manager``.
521521
csrf_token_id
522522
.............
523523

524-
**type**: ``string`` **default**: ``'logout'``
524+
**type**: ``string`` **default**: ``logout``
525525

526526
An arbitrary string used to identify the token (and check its validity afterwards).
527527

reference/configuration/twig.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ compiled again automatically.
3636
autoescape
3737
~~~~~~~~~~
3838

39-
**type**: ``boolean`` or ``string`` **default**: ``'name'``
39+
**type**: ``boolean`` or ``string`` **default**: ``name``
4040

4141
If set to ``false``, automatic escaping is disabled (you can still escape each content
4242
individually in the templates).
@@ -83,7 +83,7 @@ called to determine the default escaping applied to the template.
8383
base_template_class
8484
~~~~~~~~~~~~~~~~~~~
8585

86-
**type**: ``string`` **default**: ``'Twig\Template'``
86+
**type**: ``string`` **default**: ``Twig\Template``
8787

8888
Twig templates are compiled into PHP classes before using them to render
8989
contents. This option defines the base class from which all the template classes
@@ -93,7 +93,7 @@ application harder to maintain.
9393
cache
9494
~~~~~
9595

96-
**type**: ``string`` | ``false`` **default**: ``'%kernel.cache_dir%/twig'``
96+
**type**: ``string`` | ``false`` **default**: ``%kernel.cache_dir%/twig``
9797

9898
Before using the Twig templates to render some contents, they are compiled into
9999
regular PHP code. Compilation is a costly process, so the result is cached in
@@ -107,7 +107,7 @@ compiled again.
107107
charset
108108
~~~~~~~
109109

110-
**type**: ``string`` **default**: ``'%kernel.charset%'``
110+
**type**: ``string`` **default**: ``%kernel.charset%``
111111

112112
The charset used by the template files. By default it's the same as the value of
113113
the :ref:`kernel.charset container parameter <configuration-kernel-charset>`,
@@ -160,7 +160,7 @@ If this option is ``false``, the ``dump()`` function doesn't output any contents
160160
default_path
161161
~~~~~~~~~~~~
162162

163-
**type**: ``string`` **default**: ``'%kernel.project_dir%/templates'``
163+
**type**: ``string`` **default**: ``%kernel.project_dir%/templates``
164164

165165
The path to the directory where Symfony will look for the application Twig
166166
templates by default. If you store the templates in more than one directory, use

reference/configuration/web_profiler.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Configuration
3030
excluded_ajax_paths
3131
~~~~~~~~~~~~~~~~~~~
3232

33-
**type**: ``string`` **default**: ``'^/((index|app(_[\w]+)?)\.php/)?_wdt'``
33+
**type**: ``string`` **default**: ``^/((index|app(_[\w]+)?)\.php/)?_wdt``
3434

3535
When the toolbar logs AJAX requests, it matches their URLs against this regular
3636
expression. If the URL matches, the request is not displayed in the toolbar. This

reference/forms/types/collection.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ type::
198198
entry_type
199199
~~~~~~~~~~
200200

201-
**type**: ``string`` **default**: ``'Symfony\Component\Form\Extension\Core\Type\TextType'``
201+
**type**: ``string`` **default**: ``Symfony\Component\Form\Extension\Core\Type\TextType``
202202

203203
This is the field type for each item in this collection (e.g. ``TextType``,
204204
``ChoiceType``, etc). For example, if you have an array of email addresses,

0 commit comments

Comments
 (0)
0