diff --git a/best_practices/forms.rst b/best_practices/forms.rst index 31ffa4d5707..79a95da0be1 100644 --- a/best_practices/forms.rst +++ b/best_practices/forms.rst @@ -134,7 +134,7 @@ view layer: {{ form_start(form) }} {{ form_widget(form) }} - + {{ form_end(form) }} Validation diff --git a/components/dependency_injection/_imports-parameters-note.rst.inc b/components/dependency_injection/_imports-parameters-note.rst.inc index abb01a6ef13..92868df1985 100644 --- a/components/dependency_injection/_imports-parameters-note.rst.inc +++ b/components/dependency_injection/_imports-parameters-note.rst.inc @@ -22,7 +22,7 @@ https://symfony.com/schema/dic/services/services-1.0.xsd"> - + diff --git a/components/phpunit_bridge.rst b/components/phpunit_bridge.rst index fc7d4ca7879..3e35dbda49e 100644 --- a/components/phpunit_bridge.rst +++ b/components/phpunit_bridge.rst @@ -55,7 +55,7 @@ to register a new `test listener`_ called ``SymfonyTestsListener``: - + @@ -122,7 +122,7 @@ The summary includes: - + Trigger Deprecation Notices @@ -179,8 +179,8 @@ message, enclosed with ``/``. For example, with: - - + + @@ -342,7 +342,7 @@ following listener in your PHPUnit configuration: - + .. note:: @@ -676,7 +676,7 @@ Add the following configuration to the ``phpunit.xml.dist`` file - + diff --git a/components/serializer.rst b/components/serializer.rst index 8134d21662b..7aa3af21c37 100644 --- a/components/serializer.rst +++ b/components/serializer.rst @@ -589,7 +589,7 @@ defines a ``Person`` entity with a ``firstName`` property: https://symfony.com/schema/dic/serializer-mapping/serializer-mapping-1.0.xsd" > - + @@ -795,7 +795,7 @@ the key ``#comment`` for encoding XML comments:: // will return: // // - // + // // // @@ -1370,8 +1370,8 @@ and ``BitBucketCodeRepository`` classes: > - - + + diff --git a/components/var_dumper.rst b/components/var_dumper.rst index aea067e35e2..ac2c6f84086 100644 --- a/components/var_dumper.rst +++ b/components/var_dumper.rst @@ -140,7 +140,7 @@ the :ref:`dump_destination option ` of the https://symfony.com/schema/dic/services/services-1.0.xsd http://symfony.com/schema/dic/debug https://symfony.com/schema/dic/debug/debug-1.0.xsd"> - + .. code-block:: php diff --git a/configuration.rst b/configuration.rst index caef02546f0..4c0401084f6 100644 --- a/configuration.rst +++ b/configuration.rst @@ -47,15 +47,15 @@ instance, the framework bundle is configured in ``config/packages/framework.yaml http://symfony.com/schema/dic/framework https://symfony.com/schema/dic/framework/framework-1.0.xsd" > - - - + + + - + - + diff --git a/configuration/configuration_organization.rst b/configuration/configuration_organization.rst index f93f7e60ce3..5fe86fe290d 100644 --- a/configuration/configuration_organization.rst +++ b/configuration/configuration_organization.rst @@ -103,8 +103,8 @@ format (``.yaml``, ``.xml``, ``.php``, ``.ini``): https://symfony.com/schema/dic/symfony/symfony-1.0.xsd"> - - + + @@ -157,7 +157,7 @@ when importing it from any other configuration file: https://symfony.com/schema/dic/symfony/symfony-1.0.xsd"> - + diff --git a/configuration/environments.rst b/configuration/environments.rst index 6343c605c1d..5fa5f61ee42 100644 --- a/configuration/environments.rst +++ b/configuration/environments.rst @@ -158,7 +158,7 @@ the environment variable is passed to the kernel:: http://symfony.com/schema/dic/twig https://symfony.com/schema/dic/twig/twig-1.0.xsd"> - + @@ -231,7 +231,7 @@ configuration file: https://symfony.com/schema/dic/symfony/symfony-1.0.xsd"> - + diff --git a/configuration/external_parameters.rst b/configuration/external_parameters.rst index 22a7a621afe..193ed4c46f0 100644 --- a/configuration/external_parameters.rst +++ b/configuration/external_parameters.rst @@ -164,7 +164,7 @@ turn the value of the ``HTTP_PORT`` env var into an integer: https://symfony.com/schema/dic/symfony/symfony-1.0.xsd"> - + @@ -208,7 +208,7 @@ Symfony provides the following env var processors: some_secret - + .. code-block:: php @@ -248,7 +248,7 @@ Symfony provides the following env var processors: true - + .. code-block:: php @@ -294,7 +294,7 @@ Symfony provides the following env var processors: - + @@ -344,7 +344,7 @@ Symfony provides the following env var processors: ["10.0.0.1", "10.0.0.2"] - + .. code-block:: php @@ -384,7 +384,7 @@ Symfony provides the following env var processors: http://%env(HOST)%/project - + .. code-block:: php @@ -435,7 +435,7 @@ Symfony provides the following env var processors: ../config/auth.json - + .. code-block:: php diff --git a/configuration/micro_kernel_trait.rst b/configuration/micro_kernel_trait.rst index 6064a02a16b..d6d9f04eb32 100644 --- a/configuration/micro_kernel_trait.rst +++ b/configuration/micro_kernel_trait.rst @@ -224,7 +224,7 @@ because the configuration started to get bigger: http://symfony.com/schema/dic/symfony https://symfony.com/schema/dic/symfony/symfony-1.0.xsd"> - + diff --git a/configuration/using_parameters_in_dic.rst b/configuration/using_parameters_in_dic.rst index 2bb0da9cc3c..253da553084 100644 --- a/configuration/using_parameters_in_dic.rst +++ b/configuration/using_parameters_in_dic.rst @@ -53,15 +53,15 @@ Now, examine the results to see this closely: - + - + - + - + - + diff --git a/controller/error_pages.rst b/controller/error_pages.rst index 323199dfc81..9bf48728ca8 100644 --- a/controller/error_pages.rst +++ b/controller/error_pages.rst @@ -171,7 +171,7 @@ automatically when installing Twig support): xsi:schemaLocation="http://symfony.com/schema/routing https://symfony.com/schema/routing/routing-1.0.xsd"> - + .. code-block:: php @@ -293,7 +293,7 @@ In that case, you might want to override one or both of the ``showAction()`` and - + diff --git a/controller/service.rst b/controller/service.rst index 0f127e6e3d4..3c8311755b1 100644 --- a/controller/service.rst +++ b/controller/service.rst @@ -57,7 +57,7 @@ a service like: ``App\Controller\HelloController::index``: xsi:schemaLocation="http://symfony.com/schema/routing https://symfony.com/schema/routing/routing-1.0.xsd"> - + diff --git a/controller/soap_web_service.rst b/controller/soap_web_service.rst index 902d3d9a796..ac9e4a9ff3f 100644 --- a/controller/soap_web_service.rst +++ b/controller/soap_web_service.rst @@ -120,17 +120,17 @@ An example WSDL is below. - - + + - + - + @@ -160,7 +160,7 @@ An example WSDL is below. - + diff --git a/controller/upload_file.rst b/controller/upload_file.rst index 4efe6c4cf28..16c9edcfaa0 100644 --- a/controller/upload_file.rst +++ b/controller/upload_file.rst @@ -418,7 +418,7 @@ Now, register this class as a Doctrine listener: - + diff --git a/doctrine/associations.rst b/doctrine/associations.rst index f872596cb8c..52f8a5fa2f4 100644 --- a/doctrine/associations.rst +++ b/doctrine/associations.rst @@ -196,7 +196,7 @@ the ``Product`` entity (and getter & setter methods): field="category" target-entity="App\Entity\Category" inversed-by="products"> - + @@ -271,7 +271,7 @@ class that will hold these objects: + mapped-by="category"/> - + - + - + @@ -230,10 +230,10 @@ numbers mean that listeners are invoked earlier. - + - + diff --git a/event_dispatcher.rst b/event_dispatcher.rst index cf77cca8512..f86f1d476ad 100644 --- a/event_dispatcher.rst +++ b/event_dispatcher.rst @@ -92,7 +92,7 @@ using a special "tag": - + diff --git a/form/form_themes.rst b/form/form_themes.rst index 4ebe67130a2..71cb83319e4 100644 --- a/form/form_themes.rst +++ b/form/form_themes.rst @@ -201,7 +201,7 @@ upon the form themes enabled in your app): .. code-block:: html - + Symfony uses a Twig block called ``integer_widget`` to render that field. This is because the field type is ``integer`` and you're rendering its ``widget`` (as diff --git a/frontend/custom_version_strategy.rst b/frontend/custom_version_strategy.rst index 3b79c1ee39b..1999dc40c39 100644 --- a/frontend/custom_version_strategy.rst +++ b/frontend/custom_version_strategy.rst @@ -182,7 +182,7 @@ the :ref:`version_strategy ` option: http://symfony.com/schema/dic/symfony https://symfony.com/schema/dic/symfony/symfony-1.0.xsd"> - + diff --git a/logging/monolog_exclude_http_codes.rst b/logging/monolog_exclude_http_codes.rst index 4da301299ef..c0bc4f92fa6 100644 --- a/logging/monolog_exclude_http_codes.rst +++ b/logging/monolog_exclude_http_codes.rst @@ -41,7 +41,7 @@ logging these HTTP codes based on the MonologBundle configuration: ^/foo ^/bar - + diff --git a/logging/processors.rst b/logging/processors.rst index 4363424a1c2..691185de322 100644 --- a/logging/processors.rst +++ b/logging/processors.rst @@ -84,7 +84,7 @@ information: - + @@ -189,7 +189,7 @@ the ``monolog.processor`` tag: - + @@ -233,7 +233,7 @@ the ``monolog.processor`` tag: - + diff --git a/messenger.rst b/messenger.rst index 9bf12e8fd59..077683b85e4 100644 --- a/messenger.rst +++ b/messenger.rst @@ -111,7 +111,7 @@ If you're not using service autoconfiguration, then you need to add this config: - + @@ -171,7 +171,7 @@ the messenger component, the following configuration should have been created: - + @@ -242,7 +242,7 @@ configuration: - + @@ -291,10 +291,10 @@ instead of a class name: - + - + @@ -339,8 +339,8 @@ A class of messages can also be routed to multiple senders by specifying a list: - - + + @@ -387,7 +387,7 @@ while still having them passed to their respective handler: - + @@ -477,7 +477,7 @@ you can disable them like this: - + @@ -529,8 +529,8 @@ within the buses to add some extra capabilities like this: - - + + @@ -597,7 +597,7 @@ This middleware can be configured to define the entity manager to use: - + custom @@ -658,7 +658,7 @@ Defining such configurable middleware is based on Symfony's abstract="true"> - + @@ -756,7 +756,7 @@ Register your Factory - + @@ -799,7 +799,7 @@ named transport using your own DSN: - + diff --git a/messenger/multiple_buses.rst b/messenger/multiple_buses.rst index 403607b71db..1f6c11ac75a 100644 --- a/messenger/multiple_buses.rst +++ b/messenger/multiple_buses.rst @@ -54,14 +54,14 @@ an **event bus**. The event bus could have zero or more subscribers. - - + + - + - + @@ -135,9 +135,9 @@ binding capabilities to clarify which bus will be injected based on the argument - - - + + + @@ -177,7 +177,7 @@ you can restrict each handler to a specific bus using the ``messenger.message_ha - + @@ -228,11 +228,11 @@ the correct tag: - + - + diff --git a/profiler.rst b/profiler.rst index 145ddca76a0..4521b21df08 100644 --- a/profiler.rst +++ b/profiler.rst @@ -167,7 +167,7 @@ create an alias pointing to the existing ``profiler`` service: https://symfony.com/schema/dic/services/services-1.0.xsd"> - + diff --git a/reference/configuration/framework.rst b/reference/configuration/framework.rst index c08191bea49..3a1d35bae24 100644 --- a/reference/configuration/framework.rst +++ b/reference/configuration/framework.rst @@ -311,7 +311,7 @@ doubling them to prevent Symfony from interpreting them as container parameters) https://symfony.com/schema/dic/services/services-1.0.xsd https://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd"> - + .. code-block:: php @@ -543,7 +543,7 @@ You can also set ``esi`` to ``true`` to enable it: http://symfony.com/schema/dic/symfony https://symfony.com/schema/dic/symfony/symfony-1.0.xsd"> - + @@ -946,7 +946,7 @@ setting the value to ``null``: http://symfony.com/schema/dic/symfony https://symfony.com/schema/dic/symfony/symfony-1.0.xsd"> - + @@ -1003,7 +1003,7 @@ Whether to enable the session support in the framework. http://symfony.com/schema/dic/symfony https://symfony.com/schema/dic/symfony/symfony-1.0.xsd"> - + @@ -1059,7 +1059,7 @@ This option allows you to define a base path to be used for assets: http://symfony.com/schema/dic/symfony https://symfony.com/schema/dic/symfony/symfony-1.0.xsd"> - + @@ -1108,7 +1108,7 @@ collection each time it generates an asset's path: http://symfony.com/schema/dic/symfony https://symfony.com/schema/dic/symfony/symfony-1.0.xsd"> - + @@ -1156,7 +1156,7 @@ You can group assets into packages, to specify different base URLs for them: + base-url="http://static_cdn.example.com/avatars"/> @@ -1207,7 +1207,7 @@ For example, suppose you have the following: .. code-block:: html+twig - Symfony! + Symfony! By default, this will render a path to your image such as ``/images/logo.png``. Now, activate the ``version`` option: @@ -1234,7 +1234,7 @@ Now, activate the ``version`` option: http://symfony.com/schema/dic/symfony https://symfony.com/schema/dic/symfony/symfony-1.0.xsd"> - + @@ -1352,15 +1352,15 @@ individually for each asset package: + version="null"/> + version-strategy="app.asset.another_version_strategy"/> + base_path="/images"/> @@ -1448,11 +1448,11 @@ package: + json-manifest-path="%kernel.project_dir%/public/build/a_different_manifest.json"/> + base-path="/images"/> @@ -2203,7 +2203,7 @@ A list of workflows to be created by the framework extension: + name="my_workflow"/> diff --git a/reference/dic_tags.rst b/reference/dic_tags.rst index e93e38020b1..1aca88bb444 100644 --- a/reference/dic_tags.rst +++ b/reference/dic_tags.rst @@ -80,11 +80,11 @@ services: + class="App\Lock\MysqlLock"/> + class="App\Lock\PostgresqlLock"/> + class="App\Lock\SqliteLock"/> @@ -131,14 +131,14 @@ the generic ``app.lock`` service can be defined as follows: + class="App\Lock\MysqlLock"/> + class="App\Lock\PostgresqlLock"/> + class="App\Lock\SqliteLock"/> - + @@ -297,7 +297,7 @@ can also register it manually: - + @@ -374,7 +374,7 @@ can also register it manually: - + @@ -497,8 +497,8 @@ channel when injecting the logger in a service. - - + + @@ -553,7 +553,7 @@ You can add a processor globally: - + @@ -594,7 +594,7 @@ attribute: - + @@ -631,7 +631,7 @@ You can also add a processor for a specific logging channel by using the - + @@ -676,7 +676,7 @@ of your configuration and tag it with ``routing.loader``: - + @@ -818,7 +818,7 @@ templates): - + @@ -867,7 +867,7 @@ Now, register your loader as a service and tag it with ``translation.loader``: - + @@ -961,7 +961,7 @@ required option: ``alias``, which defines the name of the extractor:: - + @@ -1018,7 +1018,7 @@ This is the name that's used to determine which dumper should be used. - + @@ -1071,11 +1071,11 @@ the service is auto-registered and auto-tagged. But, you can also register it ma - + - + @@ -1122,7 +1122,7 @@ also have to be added as regular services: - + @@ -1167,7 +1167,7 @@ also register it manually: - + @@ -1216,7 +1216,7 @@ the service is auto-registered and auto-tagged. But, you can also register it ma - + diff --git a/routing.rst b/routing.rst index 64ca0e46605..7bc3dacd204 100644 --- a/routing.rst +++ b/routing.rst @@ -407,7 +407,7 @@ concise, but it can decrease route readability when requirements are complex: xsi:schemaLocation="http://symfony.com/schema/routing https://symfony.com/schema/routing/routing-1.0.xsd"> - + @@ -553,7 +553,7 @@ placeholder: xsi:schemaLocation="http://symfony.com/schema/routing https://symfony.com/schema/routing/routing-1.0.xsd"> - + diff --git a/routing/custom_route_loader.rst b/routing/custom_route_loader.rst index cbd005d690f..522d01e3970 100644 --- a/routing/custom_route_loader.rst +++ b/routing/custom_route_loader.rst @@ -230,7 +230,7 @@ Now define a service for the ``ExtraLoader``: - + @@ -274,7 +274,7 @@ What remains to do is adding a few lines to the routing configuration: xsi:schemaLocation="http://symfony.com/schema/routing https://symfony.com/schema/routing/routing-1.0.xsd"> - + .. code-block:: php diff --git a/routing/external_resources.rst b/routing/external_resources.rst index ccbad58cf6f..b610ac87e0e 100644 --- a/routing/external_resources.rst +++ b/routing/external_resources.rst @@ -46,16 +46,16 @@ This can be done by importing routing resources from the main routing file: https://symfony.com/schema/routing/routing-1.0.xsd"> - + - + - + - + .. code-block:: php @@ -122,7 +122,7 @@ suppose you want to prefix all application routes with ``/site`` (e.g. xsi:schemaLocation="http://symfony.com/schema/routing https://symfony.com/schema/routing/routing-1.0.xsd"> - + .. code-block:: php @@ -170,7 +170,7 @@ be prefixed with the string ``/site``. resource="../src/Controller/" type="annotation" prefix="/site" - trailing-slash-on-root="false" /> + trailing-slash-on-root="false"/> .. code-block:: php @@ -240,7 +240,7 @@ a controller class or imported from a configuration file: + name-prefix="blog_"/> .. code-block:: php diff --git a/routing/hostname_pattern.rst b/routing/hostname_pattern.rst index d8f68d61715..bb1f918e91f 100644 --- a/routing/hostname_pattern.rst +++ b/routing/hostname_pattern.rst @@ -59,9 +59,9 @@ You can also match on the HTTP *host* of the incoming request. + controller="App\Controller\MainController::mobileHomepage"/> - + .. code-block:: php @@ -145,9 +145,9 @@ you can use placeholders in your hostname: + controller="App\Controller\MainController::projectsHomepage"/> - + .. code-block:: php @@ -239,7 +239,7 @@ instance, if you want to match both ``m.example.com`` and m|mobile - + .. code-block:: php @@ -338,7 +338,7 @@ instance, if you want to match both ``m.example.com`` and %domain% - + .. code-block:: php @@ -411,7 +411,7 @@ You can also set the host option on imported routes: xsi:schemaLocation="http://symfony.com/schema/routing https://symfony.com/schema/routing/routing-1.0.xsd"> - + .. code-block:: php diff --git a/routing/optional_placeholders.rst b/routing/optional_placeholders.rst index e39fb9266ca..2d53844b0d0 100644 --- a/routing/optional_placeholders.rst +++ b/routing/optional_placeholders.rst @@ -43,7 +43,7 @@ the available blog posts for this imaginary blog application: xsi:schemaLocation="http://symfony.com/schema/routing https://symfony.com/schema/routing/routing-1.0.xsd"> - + .. code-block:: php @@ -96,7 +96,7 @@ entries? Update the route to have a new ``{page}`` placeholder: xsi:schemaLocation="http://symfony.com/schema/routing https://symfony.com/schema/routing/routing-1.0.xsd"> - + .. code-block:: php diff --git a/routing/redirect_in_config.rst b/routing/redirect_in_config.rst index 9b690618cb5..be643800cae 100644 --- a/routing/redirect_in_config.rst +++ b/routing/redirect_in_config.rst @@ -50,7 +50,7 @@ action to redirect to this new url: https://symfony.com/schema/routing/routing-1.0.xsd"> - + + methods="GET|HEAD"/> + methods="PUT"/> .. code-block:: php diff --git a/routing/scheme.rst b/routing/scheme.rst index 5badcb080ba..b4951578fa8 100644 --- a/routing/scheme.rst +++ b/routing/scheme.rst @@ -46,7 +46,7 @@ the URI scheme via schemes: xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/routing https://symfony.com/schema/routing/routing-1.0.xsd"> - + .. code-block:: php diff --git a/routing/service_container_parameters.rst b/routing/service_container_parameters.rst index fd21f5855f7..cd6bc35fe60 100644 --- a/routing/service_container_parameters.rst +++ b/routing/service_container_parameters.rst @@ -148,7 +148,7 @@ path): + controller="App\Controller\MainController::contact"/> .. code-block:: php diff --git a/security.rst b/security.rst index 4de7e31761a..287579e6396 100644 --- a/security.rst +++ b/security.rst @@ -144,7 +144,7 @@ command will pre-configure this for you: + cost="12"/> @@ -254,10 +254,10 @@ important section is ``firewalls``: + security="false"/> - + @@ -456,7 +456,7 @@ start with ``/admin``, you can: - + @@ -510,8 +510,8 @@ the list and stops when it finds the first match: - - + + @@ -772,7 +772,7 @@ To enable logging out, activate the ``logout`` config parameter under your fire - + @@ -831,7 +831,7 @@ Next, you'll need to create a route for this URL (but not a controller): xsi:schemaLocation="http://symfony.com/schema/routing https://symfony.com/schema/routing/routing-1.0.xsd"> - + .. code-block:: php diff --git a/security/access_control.rst b/security/access_control.rst index a669ddbc0c6..012609cc4e1 100644 --- a/security/access_control.rst +++ b/security/access_control.rst @@ -58,11 +58,11 @@ Take the following ``access_control`` entries as an example: - - - - - + + + + + @@ -215,7 +215,7 @@ pattern so that it is only accessible by requests from the local server itself: ::1 - + @@ -292,7 +292,7 @@ key: + allow-if="'127.0.0.1' == request.getClientIp() or is_granted('ROLE_ADMIN')"/> diff --git a/security/auth_providers.rst b/security/auth_providers.rst index 3ecc692b329..f5ec3723c7b 100644 --- a/security/auth_providers.rst +++ b/security/auth_providers.rst @@ -63,7 +63,7 @@ To support HTTP Basic authentication, add the ``http_basic`` key to your firewal - + @@ -130,7 +130,7 @@ Enable the x509 authentication for a particular firewall in the security configu - + diff --git a/security/csrf.rst b/security/csrf.rst index ebe79d9134e..f61358eaeca 100644 --- a/security/csrf.rst +++ b/security/csrf.rst @@ -44,7 +44,7 @@ for more information): https://symfony.com/schema/dic/symfony/symfony-1.0.xsd"> - + @@ -132,7 +132,7 @@ generate a CSRF token in the template and store it as a hidden form field:
{# the argument of csrf_token() is an arbitrary string used to generate the token #} - +
diff --git a/security/force_https.rst b/security/force_https.rst index fa6e9442e65..bf69d7ad995 100644 --- a/security/force_https.rst +++ b/security/force_https.rst @@ -41,7 +41,7 @@ access control: - + - - + + @@ -124,7 +124,7 @@ configuration (``login``): xsi:schemaLocation="http://symfony.com/schema/routing https://symfony.com/schema/routing/routing-1.0.xsd"> - + .. code-block:: php @@ -190,15 +190,15 @@ Finally, create the template:
- + - + {# If you want to control the URL the user is redirected to on success (more details below) - + #} @@ -287,7 +287,7 @@ security component: - + diff --git a/security/form_login_setup.rst b/security/form_login_setup.rst index a77cc36af52..08763fbfc95 100644 --- a/security/form_login_setup.rst +++ b/security/form_login_setup.rst @@ -245,7 +245,7 @@ a traditional HTML form that submits to ``/login``: - + diff --git a/security/guard_authentication.rst b/security/guard_authentication.rst index 33ababe388c..ae3b5349898 100644 --- a/security/guard_authentication.rst +++ b/security/guard_authentication.rst @@ -215,7 +215,7 @@ Finally, configure your ``firewalls`` key in ``security.yaml`` to use this authe pattern="^/" anonymous="true" > - + App\Security\TokenAuthenticator diff --git a/security/json_login_setup.rst b/security/json_login_setup.rst index 8bc6bca20a2..c7fb73cb9f2 100644 --- a/security/json_login_setup.rst +++ b/security/json_login_setup.rst @@ -104,7 +104,7 @@ The next step is to configure a route in your app matching this path: xsi:schemaLocation="http://symfony.com/schema/routing https://symfony.com/schema/routing/routing-1.0.xsd"> - + .. code-block:: php diff --git a/security/multiple_guard_authenticators.rst b/security/multiple_guard_authenticators.rst index e0ddcca1f32..66896aa7075 100644 --- a/security/multiple_guard_authenticators.rst +++ b/security/multiple_guard_authenticators.rst @@ -47,7 +47,7 @@ This is how your security configuration can look in action: - + App\Security\LoginFormAuthenticator App\Security\FacebookConnectAuthenticator @@ -130,14 +130,14 @@ the solution is to split the configuration into two separate firewalls: - + App\Security\LoginFormAuthenticator - - - + + + diff --git a/security/named_encoders.rst b/security/named_encoders.rst index f65878f07a7..fbf57fe8dce 100644 --- a/security/named_encoders.rst +++ b/security/named_encoders.rst @@ -88,7 +88,7 @@ be done with named encoders: + cost="15"/> @@ -164,7 +164,7 @@ you must register a service for it in order to use it as a named encoder: + id="App\Security\Encoder\MyCustomPasswordEncoder"/> diff --git a/security/remember_me.rst b/security/remember_me.rst index 38f7a1d4af6..7396856f89f 100644 --- a/security/remember_me.rst +++ b/security/remember_me.rst @@ -50,7 +50,7 @@ the session lasts using a cookie with the ``remember_me`` firewall option: + path="/"/> @@ -154,7 +154,7 @@ this: {# ... your form fields #} - + {# ... #} diff --git a/security/user_provider.rst b/security/user_provider.rst index 5ec911be778..b1bf2b8b1f5 100644 --- a/security/user_provider.rst +++ b/security/user_provider.rst @@ -73,12 +73,12 @@ to retrieve them: - + + manager-name="customer"/> --> @@ -175,7 +175,7 @@ To finish this, remove the ``property`` key from the user provider in - + diff --git a/serializer.rst b/serializer.rst index 72515c00106..b31fefb7e4f 100644 --- a/serializer.rst +++ b/serializer.rst @@ -101,7 +101,7 @@ properties and setters (``setXxx()``) to change properties: - + @@ -186,7 +186,7 @@ value: - + .. code-block:: php diff --git a/service_container.rst b/service_container.rst index 64f1e0330fd..69dc8b2470f 100644 --- a/service_container.rst +++ b/service_container.rst @@ -173,9 +173,9 @@ each time you ask for it. - + - + @@ -416,7 +416,7 @@ pass here. No problem! In your configuration, you can explicitly set this argume - + @@ -604,7 +604,7 @@ But, you can control this and pass in a different logger: - + @@ -883,7 +883,7 @@ key. For example, the default Symfony configuration contains this: - + @@ -1020,18 +1020,18 @@ admin email. In this case, each needs to have a unique service id: - - + + superadmin@example.com - - + + contact@example.com - + diff --git a/service_container/3.3-di-changes.rst b/service_container/3.3-di-changes.rst index d1e01f79b02..e2455b09972 100644 --- a/service_container/3.3-di-changes.rst +++ b/service_container/3.3-di-changes.rst @@ -69,12 +69,12 @@ what the file looks like in Symfony 4): https://symfony.com/schema/dic/services/services-1.0.xsd"> - + - + - + @@ -122,7 +122,7 @@ thanks to the following config: - + @@ -194,12 +194,12 @@ service as an argument to another with the following config: + class="App\Service\InvoiceGenerator"/> - + @@ -311,7 +311,7 @@ The third big change is that, in a new Symfony 3.3 project, your controllers are - + @@ -457,7 +457,7 @@ inherited from an abstract definition: - + diff --git a/service_container/alias_private.rst b/service_container/alias_private.rst index 44925e2c6e9..18d1d22464c 100644 --- a/service_container/alias_private.rst +++ b/service_container/alias_private.rst @@ -48,7 +48,7 @@ You can also control the ``public`` option on a service-by-service basis: xsi:schemaLocation="http://symfony.com/schema/dic/services https://symfony.com/schema/dic/services/services-1.0.xsd"> - + @@ -114,9 +114,9 @@ services. https://symfony.com/schema/dic/services/services-1.0.xsd"> - + - + @@ -183,7 +183,7 @@ The following example shows how to inject an anonymous service into another serv - + diff --git a/service_container/autowiring.rst b/service_container/autowiring.rst index 958b9f7510c..38957df4fff 100644 --- a/service_container/autowiring.rst +++ b/service_container/autowiring.rst @@ -92,12 +92,12 @@ both services: xsi:schemaLocation="http://symfony.com/schema/dic/services https://symfony.com/schema/dic/services/services-1.0.xsd"> - + - + - + @@ -221,8 +221,8 @@ adding a service alias: - - + + @@ -315,9 +315,9 @@ To fix that, add an :ref:`alias `: - + - + @@ -401,13 +401,13 @@ that alias: - - + + - + - + diff --git a/service_container/configurators.rst b/service_container/configurators.rst index 19032e9abfd..4287b9ba24d 100644 --- a/service_container/configurators.rst +++ b/service_container/configurators.rst @@ -151,14 +151,14 @@ all the classes are already loaded as services. All you need to do is specify th https://symfony.com/schema/dic/services/services-1.0.xsd"> - + - + - + diff --git a/service_container/factories.rst b/service_container/factories.rst index 88ff23056ac..97e9fefd634 100644 --- a/service_container/factories.rst +++ b/service_container/factories.rst @@ -55,12 +55,12 @@ configure the service container to use the - + @@ -116,7 +116,7 @@ Configuration of the service container then looks like this: https://symfony.com/schema/dic/services/services-1.0.xsd"> - + diff --git a/service_container/injection_types.rst b/service_container/injection_types.rst index ee497678b7a..19f1cbd248c 100644 --- a/service_container/injection_types.rst +++ b/service_container/injection_types.rst @@ -146,7 +146,7 @@ that accepts the dependency:: - + @@ -220,7 +220,7 @@ Another possibility is setting public fields of the class directly:: - + diff --git a/service_container/lazy_services.rst b/service_container/lazy_services.rst index 807cd057a0d..fa198777e3e 100644 --- a/service_container/lazy_services.rst +++ b/service_container/lazy_services.rst @@ -57,7 +57,7 @@ You can mark the service as ``lazy`` by manipulating its definition: https://symfony.com/schema/dic/services/services-1.0.xsd"> - + diff --git a/service_container/optional_dependencies.rst b/service_container/optional_dependencies.rst index f4baa529f5a..0b01b32e211 100644 --- a/service_container/optional_dependencies.rst +++ b/service_container/optional_dependencies.rst @@ -26,7 +26,7 @@ if the service does not exist: - + diff --git a/service_container/parent_services.rst b/service_container/parent_services.rst index 8a2fedd10b4..77015d37409 100644 --- a/service_container/parent_services.rst +++ b/service_container/parent_services.rst @@ -94,10 +94,10 @@ duplicated service definitions: - + - + @@ -212,14 +212,14 @@ the child class: > - + - + diff --git a/service_container/service_decoration.rst b/service_container/service_decoration.rst index 0086fe65dd1..80c16374def 100644 --- a/service_container/service_decoration.rst +++ b/service_container/service_decoration.rst @@ -28,11 +28,11 @@ When overriding an existing definition, the original service is lost: xsd:schemaLocation="http://symfony.com/schema/dic/services https://symfony.com/schema/dic/services/services-1.0.xsd"> - + - + @@ -76,7 +76,7 @@ but keeps a reference of the old one as ``App\DecoratingMailer.inner``: xsd:schemaLocation="http://symfony.com/schema/dic/services https://symfony.com/schema/dic/services/services-1.0.xsd"> - + - + - + @@ -197,7 +197,7 @@ automatically changed to ``decorating_service_id + '.inner'``): decoration-inner-name="App\DecoratingMailer.wooz" public="false" > - + @@ -251,14 +251,14 @@ the ``decoration_priority`` option. Its value is an integer that defaults to xsi:schemaLocation="http://symfony.com/schema/dic/services https://symfony.com/schema/dic/services/services-1.0.xsd"> - + - + - + diff --git a/service_container/service_subscribers_locators.rst b/service_container/service_subscribers_locators.rst index f92c56a3cd0..19272798fcf 100644 --- a/service_container/service_subscribers_locators.rst +++ b/service_container/service_subscribers_locators.rst @@ -216,7 +216,7 @@ service type to a service. - + @@ -274,13 +274,13 @@ include as many services as needed in it. - - + + @@ -333,7 +333,7 @@ Now you can use the service locator by injecting it in any other service: - + diff --git a/service_container/shared.rst b/service_container/shared.rst index decb9d09cf2..00f0ddf0e43 100644 --- a/service_container/shared.rst +++ b/service_container/shared.rst @@ -26,7 +26,7 @@ in your service definition: - + .. code-block:: php diff --git a/service_container/tags.rst b/service_container/tags.rst index 8d49f6b6693..b9a343e293d 100644 --- a/service_container/tags.rst +++ b/service_container/tags.rst @@ -30,7 +30,7 @@ example: - + @@ -88,7 +88,7 @@ If you want to apply tags automatically for your own services, use the - + @@ -175,7 +175,7 @@ Then, define the chain as a service: https://symfony.com/schema/dic/services/services-1.0.xsd"> - + @@ -219,11 +219,11 @@ For example, you may add the following transports as services: %mailer_host% - + - + @@ -375,11 +375,11 @@ To answer this, change the service declaration: %mailer_host% - + - + @@ -483,16 +483,16 @@ first constructor argument to the ``App\HandlerCollection`` service: - + - + - + @@ -550,7 +550,7 @@ application handlers:: - + diff --git a/session.rst b/session.rst index 7795bb10934..2da8448f457 100644 --- a/session.rst +++ b/session.rst @@ -48,7 +48,7 @@ sessions, check their default configuration: + cookie-samesite="lax"/> @@ -105,7 +105,7 @@ session metadata files: + save-path="%kernel.project_dir%/var/sessions/%kernel.environment%"/> diff --git a/session/locale_sticky_session.rst b/session/locale_sticky_session.rst index dfa4e95f0b4..ab3b8be3b36 100644 --- a/session/locale_sticky_session.rst +++ b/session/locale_sticky_session.rst @@ -96,7 +96,7 @@ via some "Change Locale" route & controller), or create a route with a the :ref: %kernel.default_locale% - + diff --git a/session/proxy_examples.rst b/session/proxy_examples.rst index 6e68e49578e..b11d1094147 100644 --- a/session/proxy_examples.rst +++ b/session/proxy_examples.rst @@ -38,7 +38,7 @@ Symfony to use your session handler instead of the default one: https://symfony.com/schema/dic/services/services-1.0.xsd"> - + diff --git a/templating.rst b/templating.rst index 53985a54587..72c2eb068d5 100644 --- a/templating.rst +++ b/templating.rst @@ -524,7 +524,7 @@ configuration: xsi:schemaLocation="http://symfony.com/schema/routing https://symfony.com/schema/routing/routing-1.0.xsd"> - + .. code-block:: php @@ -590,7 +590,7 @@ route: + methods="GET"/> .. code-block:: php diff --git a/testing.rst b/testing.rst index e904f23f590..d92d71a463b 100644 --- a/testing.rst +++ b/testing.rst @@ -889,7 +889,7 @@ configuration option: https://symfony.com/schema/dic/swiftmailer/swiftmailer-1.0.xsd"> - + .. code-block:: php diff --git a/testing/database.rst b/testing/database.rst index 98f66389e4c..ee48e55d8b1 100644 --- a/testing/database.rst +++ b/testing/database.rst @@ -129,7 +129,7 @@ To do this, you can override the value of the ``DATABASE_URL`` env var in the - + diff --git a/testing/profiling.rst b/testing/profiling.rst index 3a52617d480..659a07c7573 100644 --- a/testing/profiling.rst +++ b/testing/profiling.rst @@ -40,7 +40,7 @@ tests significantly. That's why Symfony disables it by default: - + diff --git a/validation/custom_constraint.rst b/validation/custom_constraint.rst index a229ffd7714..331f3529d50 100644 --- a/validation/custom_constraint.rst +++ b/validation/custom_constraint.rst @@ -144,8 +144,8 @@ You can use custom validators just as the ones provided by Symfony itself: - - + + @@ -237,5 +237,5 @@ not to the property: - + diff --git a/validation/sequence_provider.rst b/validation/sequence_provider.rst index ec32bae9c05..0a2983e5c22 100644 --- a/validation/sequence_provider.rst +++ b/validation/sequence_provider.rst @@ -75,11 +75,11 @@ username and the password are different only if all other validation passes - + - + @@ -223,7 +223,7 @@ entity and a new constraint group called ``Premium``: - + @@ -332,7 +332,7 @@ provides a sequence of groups to be validated: https://symfony.com/schema/dic/constraint-mapping/constraint-mapping-1.0.xsd"> - +