Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor: remove duplicated lines #19537

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion cache.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
1 change: 0 additions & 1 deletion components/cache.rst
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ The following cache adapters are available:

cache/adapters/*


.. _cache-component-psr6-caching:

Generic Caching (PSR-6)
Expand Down
2 changes: 0 additions & 2 deletions components/cache/adapters/couchbasebucket_adapter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ the second and third parameters::
$defaultLifetime
);


Configure the Connection
------------------------

Expand Down Expand Up @@ -71,7 +70,6 @@ helper method allows creating and configuring a `Couchbase Bucket`_ class instan
'couchbase:?host[localhost]&host[localhost:12345]'
);


Configure the Options
---------------------

Expand Down
2 changes: 0 additions & 2 deletions components/cache/adapters/couchbasecollection_adapter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ the second and third parameters::
$defaultLifetime
);


Configure the Connection
------------------------

Expand Down Expand Up @@ -68,7 +67,6 @@ helper method allows creating and configuring a `Couchbase Collection`_ class in
'couchbase:?host[localhost]&host[localhost:12345]'
);


Configure the Options
---------------------

Expand Down
1 change: 0 additions & 1 deletion components/cache/adapters/filesystem_adapter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 0 additions & 1 deletion components/cache/cache_pools.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ ready to use in your applications.

adapters/*


Using the Cache Contracts
-------------------------

Expand Down
1 change: 0 additions & 1 deletion components/event_dispatcher/generic_event.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,3 @@ Filtering data::
$event['data'] = strtolower($event['data']);
}
}

1 change: 0 additions & 1 deletion components/http_kernel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
1 change: 0 additions & 1 deletion components/process.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Installation

$ composer require symfony/process


.. include:: /components/require_autoload.rst.inc

Usage
Expand Down
1 change: 0 additions & 1 deletion components/property_access.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion configuration/override_dir_structure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ Web front-controller::
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
// ...


.. _override-config-dir:

Override the Configuration Directory
Expand Down
1 change: 0 additions & 1 deletion configuration/secrets.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 0 additions & 1 deletion console.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion contributing/community/review-comments.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
----------------------

Expand Down
1 change: 0 additions & 1 deletion contributing/documentation/standards.rst
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ Images and Diagrams
alt="Some concise description."
></object>


English Language Standards
--------------------------

Expand Down
1 change: 0 additions & 1 deletion doctrine/associations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
1 change: 0 additions & 1 deletion form/create_custom_field_type.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
1 change: 0 additions & 1 deletion form/form_collections.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion frontend/custom_version_strategy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <reference-framework-assets-packages>` thanks to
the :ref:`version_strategy <reference-assets-version-strategy>` option:
Expand Down
1 change: 0 additions & 1 deletion frontend/encore/dev-server.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions frontend/encore/reactjs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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!
Expand Down
1 change: 0 additions & 1 deletion frontend/encore/split-chunks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions mailer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,6 @@ Other Options

This option was introduced in Symfony 5.2.


``local_domain``
The domain name to use in ``HELO`` command::

Expand Down Expand Up @@ -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`).

Expand Down
2 changes: 0 additions & 2 deletions mercure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
---------------------------------------------------

Expand Down
2 changes: 0 additions & 2 deletions messenger.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1604,7 +1604,6 @@
A number of options can be configured via the DSN or via the ``options`` key
under the transport in ``messenger.yaml``:


=================== ===================================== =================================
Option Description Default
=================== ===================================== =================================
Expand Down Expand Up @@ -2359,9 +2358,8 @@

# add your own services that implement Symfony\Component\Messenger\Middleware\MiddlewareInterface
- 'App\Middleware\MyMiddleware'
- 'App\Middleware\AnotherMiddleware'

Check failure on line 2361 in messenger.rst

View workflow job for this annotation

GitHub Actions / Code Blocks

[Cache Warmup] In MessengerPass.php line 366: Invalid middleware: service "App\Middleware\MyMiddleware" not found.


.. code-block:: xml

<!-- config/packages/messenger.xml -->
Expand Down
1 change: 0 additions & 1 deletion profiler.rst
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ production. To do that, create an :doc:`event subscriber </event_dispatcher>`
and listen to the :ref:`kernel.response <component-http-kernel-kernel-response>`
event::


use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpKernel\Event\ResponseEvent;
use Symfony\Component\HttpKernel\KernelInterface;
Expand Down
1 change: 0 additions & 1 deletion reference/configuration/framework.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
~~~~~~~

Expand Down
1 change: 0 additions & 1 deletion reference/configuration/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion reference/constraints/Country.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

1 change: 0 additions & 1 deletion reference/constraints/Email.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <reference-validation-email_validation_mode>`
configuration option.
Expand Down
1 change: 0 additions & 1 deletion reference/constraints/EqualTo.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <validation-property-target>`
Class :class:`Symfony\\Component\\Validator\\Constraints\\EqualTo`
Expand Down
1 change: 0 additions & 1 deletion reference/constraints/Length.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ and ``50``, you might add the following:
protected $firstName;
}


.. code-block:: yaml

# config/validator/validation.yaml
Expand Down
1 change: 0 additions & 1 deletion reference/constraints/Positive.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion reference/constraints/Ulid.rst
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,4 @@ Parameter Description

.. include:: /reference/constraints/_payload-option.rst.inc


.. _`Universally Unique Lexicographically Sortable Identifier (ULID)`: https://github.com/ulid/spec
1 change: 0 additions & 1 deletion reference/formats/message_format.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 ``%``
Expand Down
1 change: 0 additions & 1 deletion routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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``:
Expand Down
1 change: 0 additions & 1 deletion security/custom_authenticator.rst
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,6 @@ The following credential classes are supported by default:
$apiToken
));


Self Validating Passport
~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
1 change: 0 additions & 1 deletion security/entry_point.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
$security->enableAuthenticatorManager(true);
// ....


// allow authentication using a form or HTTP basic
$mainFirewall = $security->firewall('main');
$mainFirewall
Expand All @@ -78,7 +77,7 @@
// configure the form authentication as the entry point for unauthenticated users
->entryPoint('form_login');
;
};

Check failure on line 80 in security/entry_point.rst

View workflow job for this annotation

GitHub Actions / Code Blocks

[Cache Warmup] 2024-02-08T18:01:57+00:00 [critical] Uncaught Error: Call to undefined method Symfony\Config\Security\FirewallConfig\FormLoginConfig::customAuthenticators()

.. note::

Expand Down
2 changes: 0 additions & 2 deletions security/ldap.rst
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ use the ``ldap`` user provider.
;
};


.. caution::

The Security component escapes provided input data when the LDAP user
Expand Down Expand Up @@ -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

1 change: 0 additions & 1 deletion security/remember_me.rst
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@ Persistent tokens

The ``service`` option was introduced in Symfony 5.1.


.. _security-remember-me-signature:

Using Signed Remember Me Tokens
Expand Down
1 change: 0 additions & 1 deletion serializer/custom_encoders.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
--------------------------

Expand Down
1 change: 0 additions & 1 deletion serializer/custom_normalizer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,3 @@ is called.
as well the ones included in `API Platform`_ natively implement this interface.

.. _`API Platform`: https://api-platform.com

2 changes: 0 additions & 2 deletions service_container.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ service's class or interface name. Want to :doc:`log </logging>` something? No p
}
}


What other services are available? Find out by running:

.. code-block:: terminal
Expand Down Expand Up @@ -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.
Expand Down