From 6629fcf67c9ab7ded41e2c9f2a6f6415e4fc866d Mon Sep 17 00:00:00 2001 From: Antoine Lamirault Date: Thu, 8 Feb 2024 18:47:58 +0100 Subject: [PATCH] Minor: remove duplicated lines --- cache.rst | 1 - components/cache.rst | 1 - components/cache/adapters/couchbasebucket_adapter.rst | 2 -- components/cache/adapters/couchbasecollection_adapter.rst | 2 -- components/cache/adapters/filesystem_adapter.rst | 1 - components/cache/cache_pools.rst | 1 - components/event_dispatcher/generic_event.rst | 1 - components/http_kernel.rst | 1 - components/process.rst | 1 - components/property_access.rst | 1 - configuration.rst | 1 - configuration/override_dir_structure.rst | 1 - configuration/secrets.rst | 1 - console.rst | 1 - contributing/community/review-comments.rst | 1 - contributing/documentation/standards.rst | 1 - doctrine/associations.rst | 1 - form/create_custom_field_type.rst | 1 - form/form_collections.rst | 1 - frontend/custom_version_strategy.rst | 1 - frontend/encore/dev-server.rst | 1 - frontend/encore/reactjs.rst | 3 +-- frontend/encore/split-chunks.rst | 1 - mailer.rst | 2 -- mercure.rst | 2 -- messenger.rst | 2 -- profiler.rst | 1 - reference/configuration/framework.rst | 1 - reference/configuration/security.rst | 1 - reference/constraints/Country.rst | 1 - reference/constraints/Email.rst | 1 - reference/constraints/EqualTo.rst | 1 - reference/constraints/Length.rst | 1 - reference/constraints/Positive.rst | 1 - reference/constraints/Ulid.rst | 1 - reference/formats/message_format.rst | 1 - routing.rst | 1 - security/custom_authenticator.rst | 1 - security/entry_point.rst | 1 - security/ldap.rst | 2 -- security/remember_me.rst | 1 - serializer/custom_encoders.rst | 1 - serializer/custom_normalizer.rst | 1 - service_container.rst | 2 -- service_container/autowiring.rst | 3 --- service_container/factories.rst | 1 - service_container/lazy_services.rst | 1 - service_container/service_decoration.rst | 1 - service_container/synthetic_services.rst | 1 - service_container/tags.rst | 2 -- session.rst | 1 - setup/flex_private_recipes.rst | 2 -- setup/unstable_versions.rst | 1 - setup/web_server_configuration.rst | 1 - validation/custom_constraint.rst | 1 - 55 files changed, 1 insertion(+), 67 deletions(-) diff --git a/cache.rst b/cache.rst index 0e449f2bb0d..43d417c1738 100644 --- a/cache.rst +++ b/cache.rst @@ -481,7 +481,6 @@ and use that when configuring the pool. ->adapters(['cache.adapter.redis']) ->provider('app.my_custom_redis_provider'); - $container->register('app.my_custom_redis_provider', \Redis::class) ->setFactory([RedisAdapter::class, 'createConnection']) ->addArgument('redis://localhost') diff --git a/components/cache.rst b/components/cache.rst index daef6d4f5a6..857282eb1d0 100644 --- a/components/cache.rst +++ b/components/cache.rst @@ -141,7 +141,6 @@ The following cache adapters are available: cache/adapters/* - .. _cache-component-psr6-caching: Generic Caching (PSR-6) diff --git a/components/cache/adapters/couchbasebucket_adapter.rst b/components/cache/adapters/couchbasebucket_adapter.rst index 5312371a2bb..172a8fe0f19 100644 --- a/components/cache/adapters/couchbasebucket_adapter.rst +++ b/components/cache/adapters/couchbasebucket_adapter.rst @@ -39,7 +39,6 @@ the second and third parameters:: $defaultLifetime ); - Configure the Connection ------------------------ @@ -71,7 +70,6 @@ helper method allows creating and configuring a `Couchbase Bucket`_ class instan 'couchbase:?host[localhost]&host[localhost:12345]' ); - Configure the Options --------------------- diff --git a/components/cache/adapters/couchbasecollection_adapter.rst b/components/cache/adapters/couchbasecollection_adapter.rst index 66586c816ee..296b7065f1d 100644 --- a/components/cache/adapters/couchbasecollection_adapter.rst +++ b/components/cache/adapters/couchbasecollection_adapter.rst @@ -36,7 +36,6 @@ the second and third parameters:: $defaultLifetime ); - Configure the Connection ------------------------ @@ -68,7 +67,6 @@ helper method allows creating and configuring a `Couchbase Collection`_ class in 'couchbase:?host[localhost]&host[localhost:12345]' ); - Configure the Options --------------------- diff --git a/components/cache/adapters/filesystem_adapter.rst b/components/cache/adapters/filesystem_adapter.rst index 4c447b3de82..26ef48af27c 100644 --- a/components/cache/adapters/filesystem_adapter.rst +++ b/components/cache/adapters/filesystem_adapter.rst @@ -63,6 +63,5 @@ adapter offers better read performance when using tag-based invalidation:: $cache = new FilesystemTagAwareAdapter(); - .. _`tmpfs`: https://wiki.archlinux.org/index.php/tmpfs .. _`RAM disk solutions`: https://en.wikipedia.org/wiki/List_of_RAM_drive_software diff --git a/components/cache/cache_pools.rst b/components/cache/cache_pools.rst index c92a22a136b..3a0897defcf 100644 --- a/components/cache/cache_pools.rst +++ b/components/cache/cache_pools.rst @@ -25,7 +25,6 @@ ready to use in your applications. adapters/* - Using the Cache Contracts ------------------------- diff --git a/components/event_dispatcher/generic_event.rst b/components/event_dispatcher/generic_event.rst index dbc37cbe752..8fba7c41940 100644 --- a/components/event_dispatcher/generic_event.rst +++ b/components/event_dispatcher/generic_event.rst @@ -99,4 +99,3 @@ Filtering data:: $event['data'] = strtolower($event['data']); } } - diff --git a/components/http_kernel.rst b/components/http_kernel.rst index abfd5b16163..17ea754b70c 100644 --- a/components/http_kernel.rst +++ b/components/http_kernel.rst @@ -26,7 +26,6 @@ The Workflow of a Request :doc:`/event_dispatcher` articles to learn about how to use it to create controllers and define events in Symfony applications. - Every HTTP web interaction begins with a request and ends with a response. Your job as a developer is to create PHP code that reads the request information (e.g. the URL) and creates and returns a response (e.g. an HTML page or JSON string). diff --git a/components/process.rst b/components/process.rst index d11618cb119..c3a289645e9 100644 --- a/components/process.rst +++ b/components/process.rst @@ -10,7 +10,6 @@ Installation $ composer require symfony/process - .. include:: /components/require_autoload.rst.inc Usage diff --git a/components/property_access.rst b/components/property_access.rst index f19aff6111b..e2e6cb95796 100644 --- a/components/property_access.rst +++ b/components/property_access.rst @@ -186,7 +186,6 @@ method:: // instead of throwing an exception the following code returns null $value = $propertyAccessor->getValue($person, 'birthday'); - .. _components-property-access-magic-get: Magic ``__get()`` Method diff --git a/configuration.rst b/configuration.rst index 7c6090b0987..37e341179ee 100644 --- a/configuration.rst +++ b/configuration.rst @@ -338,7 +338,6 @@ configuration file using a special syntax: wrap the parameter name in two ``%`` ]); }; - .. note:: If some parameter value includes the ``%`` character, you need to escape it diff --git a/configuration/override_dir_structure.rst b/configuration/override_dir_structure.rst index 21e3f89d31b..41bf46d0e66 100644 --- a/configuration/override_dir_structure.rst +++ b/configuration/override_dir_structure.rst @@ -74,7 +74,6 @@ Web front-controller:: require_once dirname(__DIR__).'/vendor/autoload_runtime.php'; // ... - .. _override-config-dir: Override the Configuration Directory diff --git a/configuration/secrets.rst b/configuration/secrets.rst index 3927fa6161f..863f575287d 100644 --- a/configuration/secrets.rst +++ b/configuration/secrets.rst @@ -320,6 +320,5 @@ The secrets system is enabled by default and some of its behavior can be configu ; }; - .. _`libsodium`: https://pecl.php.net/package/libsodium .. _`paragonie/sodium_compat`: https://github.com/paragonie/sodium_compat diff --git a/console.rst b/console.rst index 393f75fe677..e414ed15ced 100644 --- a/console.rst +++ b/console.rst @@ -571,7 +571,6 @@ call ``setAutoExit(false)`` on it to get the command result in ``CommandTester`` $tester = new ApplicationTester($application); - .. caution:: When testing ``InputOption::VALUE_NONE`` command options, you must pass an diff --git a/contributing/community/review-comments.rst b/contributing/community/review-comments.rst index 0a048d8fa6e..5b9bc932205 100644 --- a/contributing/community/review-comments.rst +++ b/contributing/community/review-comments.rst @@ -149,7 +149,6 @@ you don't have to use "Please" all the time. But it wouldn't hurt. It may not seem like much, but saying "Thank you" does make others feel more welcome. - Preventing Escalations ---------------------- diff --git a/contributing/documentation/standards.rst b/contributing/documentation/standards.rst index cc5e16f3f81..0184fef36fc 100644 --- a/contributing/documentation/standards.rst +++ b/contributing/documentation/standards.rst @@ -175,7 +175,6 @@ Images and Diagrams alt="Some concise description." > - English Language Standards -------------------------- diff --git a/doctrine/associations.rst b/doctrine/associations.rst index 442143fa7ed..57e0aa55c9f 100644 --- a/doctrine/associations.rst +++ b/doctrine/associations.rst @@ -679,7 +679,6 @@ that behavior, use the `orphanRemoval`_ option inside ``Category``: #[ORM\OneToMany(targetEntity: Product::class, mappedBy: "category", orphanRemoval: true)] private $products; - Thanks to this, if the ``Product`` is removed from the ``Category``, it will be removed from the database entirely. diff --git a/form/create_custom_field_type.rst b/form/create_custom_field_type.rst index 7292356841d..fe9e074f58c 100644 --- a/form/create_custom_field_type.rst +++ b/form/create_custom_field_type.rst @@ -464,7 +464,6 @@ Symfony passes a series of variables to the template used to render the form type. You can also pass your own variables, which can be based on the options defined by the form or be completely independent:: - // src/Form/Type/PostalAddressType.php namespace App\Form\Type; diff --git a/form/form_collections.rst b/form/form_collections.rst index a2726ed1ed6..b3caff2f436 100644 --- a/form/form_collections.rst +++ b/form/form_collections.rst @@ -529,7 +529,6 @@ Now, you need to put some code into the ``removeTag()`` method of ``Task``:: } } - The ``allow_delete`` option means that if an item of a collection isn't sent on submission, the related data is removed from the collection on the server. In order for this to work in an HTML form, you must remove diff --git a/frontend/custom_version_strategy.rst b/frontend/custom_version_strategy.rst index 04a2d45f245..c5716b3f111 100644 --- a/frontend/custom_version_strategy.rst +++ b/frontend/custom_version_strategy.rst @@ -152,7 +152,6 @@ After creating the strategy PHP class, register it as a Symfony service. ); }; - Finally, enable the new asset versioning for all the application assets or just for some :ref:`asset package ` thanks to the :ref:`version_strategy ` option: diff --git a/frontend/encore/dev-server.rst b/frontend/encore/dev-server.rst index b509b68246f..01501178caf 100644 --- a/frontend/encore/dev-server.rst +++ b/frontend/encore/dev-server.rst @@ -122,7 +122,6 @@ Live Reloading when changing PHP / Twig Files To utilize the HMR superpower along with live reload for your PHP code and templates, set the following options: - .. code-block:: javascript // webpack.config.js diff --git a/frontend/encore/reactjs.rst b/frontend/encore/reactjs.rst index 4660b07603a..c12783781c3 100644 --- a/frontend/encore/reactjs.rst +++ b/frontend/encore/reactjs.rst @@ -9,7 +9,7 @@ Enabling React.js .. tip:: Check out live demos of Symfony UX React component at `https://ux.symfony.com/react`_! - + Using React? First add some dependencies with npm: .. code-block:: terminal @@ -28,7 +28,6 @@ Enable react in your ``webpack.config.js``: + .enableReactPreset() ; - Then restart Encore. When you do, it will give you a command you can run to install any missing dependencies. After running that command and restarting Encore, you're done! diff --git a/frontend/encore/split-chunks.rst b/frontend/encore/split-chunks.rst index 7739b0a49c6..f9d2353a75e 100644 --- a/frontend/encore/split-chunks.rst +++ b/frontend/encore/split-chunks.rst @@ -22,7 +22,6 @@ To enable this, call ``splitEntryChunks()``: + .splitEntryChunks() - Now, each output file (e.g. ``homepage.js``) *may* be split into multiple file (e.g. ``homepage.js`` & ``vendors-node_modules_jquery_dist_jquery_js.js`` - the filename of the second will be less obvious when you build for production). This diff --git a/mailer.rst b/mailer.rst index 379e2a71694..f5609ae394a 100644 --- a/mailer.rst +++ b/mailer.rst @@ -323,7 +323,6 @@ Other Options This option was introduced in Symfony 5.2. - ``local_domain`` The domain name to use in ``HELO`` command:: @@ -1351,7 +1350,6 @@ you have a transport called ``async``, you can route the message there: ->senders(['async']); }; - Thanks to this, instead of being delivered immediately, messages will be sent to the transport to be handled later (see :ref:`messenger-worker`). diff --git a/mercure.rst b/mercure.rst index 2b34c3c105b..a2ed1fea4db 100644 --- a/mercure.rst +++ b/mercure.rst @@ -501,14 +501,12 @@ And here is the controller:: } } - .. tip:: You cannot use the ``mercure()`` helper and the ``setCookie()`` method at the same time (it would set the cookie twice on a single request). Choose either one method or the other. - Programmatically Generating The JWT Used to Publish --------------------------------------------------- diff --git a/messenger.rst b/messenger.rst index 84de04743de..ea8a66ae8cc 100644 --- a/messenger.rst +++ b/messenger.rst @@ -1604,7 +1604,6 @@ The Redis transport DSN may looks like this: A number of options can be configured via the DSN or via the ``options`` key under the transport in ``messenger.yaml``: - =================== ===================================== ================================= Option Description Default =================== ===================================== ================================= @@ -2361,7 +2360,6 @@ and a different instance will be created per bus. - 'App\Middleware\MyMiddleware' - 'App\Middleware\AnotherMiddleware' - .. code-block:: xml diff --git a/profiler.rst b/profiler.rst index 3da11a5bab6..134a8336cf4 100644 --- a/profiler.rst +++ b/profiler.rst @@ -193,7 +193,6 @@ production. To do that, create an :doc:`event subscriber ` and listen to the :ref:`kernel.response ` event:: - use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\HttpKernel\Event\ResponseEvent; use Symfony\Component\HttpKernel\KernelInterface; diff --git a/reference/configuration/framework.rst b/reference/configuration/framework.rst index 7ffb0826ae8..25edfe52910 100644 --- a/reference/configuration/framework.rst +++ b/reference/configuration/framework.rst @@ -2862,7 +2862,6 @@ annotation changes). For performance reasons, it is recommended to disable debug mode in production, which will happen automatically if you use the default value. - secrets ~~~~~~~ diff --git a/reference/configuration/security.rst b/reference/configuration/security.rst index e28b52336ba..771054d9d12 100644 --- a/reference/configuration/security.rst +++ b/reference/configuration/security.rst @@ -303,7 +303,6 @@ the ``debug:firewall`` command: The ``debug:firewall`` command was introduced in Symfony 5.3. - .. _reference-security-firewall-form-login: ``form_login`` Authentication diff --git a/reference/constraints/Country.rst b/reference/constraints/Country.rst index 60ed57b98d2..fbffb0e4d17 100644 --- a/reference/constraints/Country.rst +++ b/reference/constraints/Country.rst @@ -120,4 +120,3 @@ Parameter Description .. _`ISO 3166-1 alpha-2`: https://en.wikipedia.org/wiki/ISO_3166-1#Current_codes .. _`ISO 3166-1 alpha-3`: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3#Current_codes - diff --git a/reference/constraints/Email.rst b/reference/constraints/Email.rst index da3c263d99e..cf151610324 100644 --- a/reference/constraints/Email.rst +++ b/reference/constraints/Email.rst @@ -142,7 +142,6 @@ This option defines the pattern used to validate the email address. Valid values :class:`Symfony\\Component\\Validator\\Constraints\\Email` (e.g. ``Email::VALIDATION_MODE_STRICT``). - The default value used by this option is set in the :ref:`framework.validation.email_validation_mode ` configuration option. diff --git a/reference/constraints/EqualTo.rst b/reference/constraints/EqualTo.rst index 06578c27c19..444df708eb2 100644 --- a/reference/constraints/EqualTo.rst +++ b/reference/constraints/EqualTo.rst @@ -10,7 +10,6 @@ To force that a value is *not* equal, see :doc:`/reference/constraints/NotEqualT equal. Use :doc:`/reference/constraints/IdenticalTo` to compare with ``===``. - ========== =================================================================== Applies to :ref:`property or method ` Class :class:`Symfony\\Component\\Validator\\Constraints\\EqualTo` diff --git a/reference/constraints/Length.rst b/reference/constraints/Length.rst index 3a197426975..44977ca0ea6 100644 --- a/reference/constraints/Length.rst +++ b/reference/constraints/Length.rst @@ -55,7 +55,6 @@ and ``50``, you might add the following: protected $firstName; } - .. code-block:: yaml # config/validator/validation.yaml diff --git a/reference/constraints/Positive.rst b/reference/constraints/Positive.rst index b918c21695a..326e66e7c9b 100644 --- a/reference/constraints/Positive.rst +++ b/reference/constraints/Positive.rst @@ -78,7 +78,6 @@ positive number (greater than zero): use Symfony\Component\Validator\Constraints as Assert; use Symfony\Component\Validator\Mapping\ClassMetadata; - class Employee { public static function loadValidatorMetadata(ClassMetadata $metadata) diff --git a/reference/constraints/Ulid.rst b/reference/constraints/Ulid.rst index 102e6486e41..be7b8355cd6 100644 --- a/reference/constraints/Ulid.rst +++ b/reference/constraints/Ulid.rst @@ -112,5 +112,4 @@ Parameter Description .. include:: /reference/constraints/_payload-option.rst.inc - .. _`Universally Unique Lexicographically Sortable Identifier (ULID)`: https://github.com/ulid/spec diff --git a/reference/formats/message_format.rst b/reference/formats/message_format.rst index 99c02f0f5b2..5ebd5def049 100644 --- a/reference/formats/message_format.rst +++ b/reference/formats/message_format.rst @@ -63,7 +63,6 @@ The basic usage of the MessageFormat allows you to use placeholders (called 'say_hello' => "Hello {name}!", ]; - .. caution:: In the previous translation format, placeholders were often wrapped in ``%`` diff --git a/routing.rst b/routing.rst index b5d1e5cc95c..b557763e118 100644 --- a/routing.rst +++ b/routing.rst @@ -2099,7 +2099,6 @@ host name: ; }; - The value of the ``host`` option can include parameters (which is useful in multi-tenant applications) and these parameters can be validated too with ``requirements``: diff --git a/security/custom_authenticator.rst b/security/custom_authenticator.rst index e79ea010ecd..e79d8a002a1 100644 --- a/security/custom_authenticator.rst +++ b/security/custom_authenticator.rst @@ -292,7 +292,6 @@ The following credential classes are supported by default: $apiToken )); - Self Validating Passport ~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/security/entry_point.rst b/security/entry_point.rst index fb1fbe4ea41..9dfaf8bca8c 100644 --- a/security/entry_point.rst +++ b/security/entry_point.rst @@ -68,7 +68,6 @@ You can configure this using the ``entry_point`` setting: $security->enableAuthenticatorManager(true); // .... - // allow authentication using a form or HTTP basic $mainFirewall = $security->firewall('main'); $mainFirewall diff --git a/security/ldap.rst b/security/ldap.rst index b984bdf749b..e6bb8d6351b 100644 --- a/security/ldap.rst +++ b/security/ldap.rst @@ -197,7 +197,6 @@ use the ``ldap`` user provider. ; }; - .. caution:: The Security component escapes provided input data when the LDAP user @@ -530,4 +529,3 @@ Configuration example for form login and query_string .. _`LDAP PHP extension`: https://www.php.net/manual/en/intro.ldap.php .. _`RFC4515`: https://datatracker.ietf.org/doc/rfc4515/ .. _`LDAP injection`: http://projects.webappsec.org/w/page/13246947/LDAP%20Injection - diff --git a/security/remember_me.rst b/security/remember_me.rst index 4038f9e6268..055c0a783cf 100644 --- a/security/remember_me.rst +++ b/security/remember_me.rst @@ -289,7 +289,6 @@ Persistent tokens The ``service`` option was introduced in Symfony 5.1. - .. _security-remember-me-signature: Using Signed Remember Me Tokens diff --git a/serializer/custom_encoders.rst b/serializer/custom_encoders.rst index 432cb205b63..9f8a9d8448d 100644 --- a/serializer/custom_encoders.rst +++ b/serializer/custom_encoders.rst @@ -53,7 +53,6 @@ create your own encoder that uses the ``Symfony\Component\Serializer\Encoder\ContextAwareDecoderInterface`` or ``Symfony\Component\Serializer\Encoder\ContextAwareEncoderInterface`` accordingly. - Registering it in your app -------------------------- diff --git a/serializer/custom_normalizer.rst b/serializer/custom_normalizer.rst index c2c8c5d0bbf..85044ed0f33 100644 --- a/serializer/custom_normalizer.rst +++ b/serializer/custom_normalizer.rst @@ -86,4 +86,3 @@ is called. as well the ones included in `API Platform`_ natively implement this interface. .. _`API Platform`: https://api-platform.com - diff --git a/service_container.rst b/service_container.rst index 6a3b606be22..097cdcd5a60 100644 --- a/service_container.rst +++ b/service_container.rst @@ -45,7 +45,6 @@ service's class or interface name. Want to :doc:`log ` something? No p } } - What other services are available? Find out by running: .. code-block:: terminal @@ -513,7 +512,6 @@ pass here. No problem! In your configuration, you can explicitly set this argume ; }; - Thanks to this, the container will pass ``manager@example.com`` to the ``$adminEmail`` argument of ``__construct`` when creating the ``SiteUpdateManager`` service. The other arguments will still be autowired. diff --git a/service_container/autowiring.rst b/service_container/autowiring.rst index b1c6e85d265..d75d34443ca 100644 --- a/service_container/autowiring.rst +++ b/service_container/autowiring.rst @@ -119,7 +119,6 @@ both services: ->autowire(); }; - Now, you can use the ``TwitterClient`` service immediately in a controller:: // src/Controller/DefaultController.php @@ -256,7 +255,6 @@ adding a service alias: $services->alias(Rot13Transformer::class, 'app.rot13.transformer'); }; - This creates a service "alias", whose id is ``App\Util\Rot13Transformer``. Thanks to this, autowiring sees this and uses it whenever the ``Rot13Transformer`` class is type-hinted. @@ -360,7 +358,6 @@ To fix that, add an :ref:`alias `: $services->alias(TransformerInterface::class, Rot13Transformer::class); }; - Thanks to the ``App\Util\TransformerInterface`` alias, the autowiring subsystem knows that the ``App\Util\Rot13Transformer`` service should be injected when dealing with the ``TransformerInterface``. diff --git a/service_container/factories.rst b/service_container/factories.rst index a188bb2a046..3f13655c6cb 100644 --- a/service_container/factories.rst +++ b/service_container/factories.rst @@ -82,7 +82,6 @@ create its object: ->factory([NewsletterManagerStaticFactory::class, 'createNewsletterManager']); }; - .. note:: When using a factory to create services, the value chosen for class diff --git a/service_container/lazy_services.rst b/service_container/lazy_services.rst index bf45e100ef8..86cfc33749b 100644 --- a/service_container/lazy_services.rst +++ b/service_container/lazy_services.rst @@ -82,7 +82,6 @@ You can mark the service as ``lazy`` by manipulating its definition: $services->set(AppExtension::class)->lazy(); }; - Once you inject the service into another service, a virtual `proxy`_ with the same signature of the class representing the service should be injected. The same happens when calling ``Container::get()`` directly. diff --git a/service_container/service_decoration.rst b/service_container/service_decoration.rst index 5d663fbc797..08bff60b534 100644 --- a/service_container/service_decoration.rst +++ b/service_container/service_decoration.rst @@ -309,7 +309,6 @@ the ``decoration_priority`` option. Its value is an integer that defaults to ->args([service('.inner')]); }; - The generated code will be the following:: $this->services[Foo::class] = new Baz(new Bar(new Foo())); diff --git a/service_container/synthetic_services.rst b/service_container/synthetic_services.rst index fc26c6848d3..c43a15034d0 100644 --- a/service_container/synthetic_services.rst +++ b/service_container/synthetic_services.rst @@ -71,7 +71,6 @@ configuration: ->synthetic(); }; - Now, you can inject the instance in the container using :method:`Container::set() `:: diff --git a/service_container/tags.rst b/service_container/tags.rst index cb4c4d562f9..9917cc65204 100644 --- a/service_container/tags.rst +++ b/service_container/tags.rst @@ -44,7 +44,6 @@ example: ->tag('twig.extension'); }; - Services tagged with the ``twig.extension`` tag are collected during the initialization of TwigBundle and added to Twig as extensions. @@ -348,7 +347,6 @@ Then, define the chain as a service: $services->set(TransportChain::class); }; - Define Services with a Custom Tag ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/session.rst b/session.rst index d112e9acfb4..3298e425965 100644 --- a/session.rst +++ b/session.rst @@ -1002,7 +1002,6 @@ the MongoDB connection as argument, and the required parameters: ``collection``: The name of the collection - .. configuration-block:: .. code-block:: yaml diff --git a/setup/flex_private_recipes.rst b/setup/flex_private_recipes.rst index d143c69f3d7..191dd6a4e02 100644 --- a/setup/flex_private_recipes.rst +++ b/setup/flex_private_recipes.rst @@ -228,7 +228,6 @@ computer, and execute the following command: Replace ``[token]`` with the value of your Gitlab personal access token. - Configure Your Project's ``composer.json`` File ----------------------------------------------- @@ -308,4 +307,3 @@ install the new private recipes, run the following command: .. _`release of version 1.16`: https://github.com/symfony/cli .. _`Symfony recipe files`: https://github.com/symfony/recipes/tree/flex/main - diff --git a/setup/unstable_versions.rst b/setup/unstable_versions.rst index 6b30a0f785b..f8010440855 100644 --- a/setup/unstable_versions.rst +++ b/setup/unstable_versions.rst @@ -7,7 +7,6 @@ they are released as stable versions. Creating a New Project Based on an Unstable Symfony Version ----------------------------------------------------------- - Suppose that the Symfony 5.4 version hasn't been released yet and you want to create a new project to test its features. First, `install the Composer package manager`_. Then, open a command console, enter your project's directory and diff --git a/setup/web_server_configuration.rst b/setup/web_server_configuration.rst index 6723d0abaa3..cfd4ec1a0b7 100644 --- a/setup/web_server_configuration.rst +++ b/setup/web_server_configuration.rst @@ -197,7 +197,6 @@ When using Caddy on the server, you can use a configuration like this: encode zstd gzip file_server - # otherwise, use PHP-FPM (replace "unix//var/..." with "127.0.0.1:9000" when using TCP) php_fastcgi unix//var/run/php/php7.4-fpm.sock { # optionally set the value of the environment variables used in the application diff --git a/validation/custom_constraint.rst b/validation/custom_constraint.rst index 16a02c12894..593c968e12a 100644 --- a/validation/custom_constraint.rst +++ b/validation/custom_constraint.rst @@ -666,4 +666,3 @@ class to simplify writing unit tests for your custom constraints:: // ... } } -