Skip to content

Commit

Permalink
Merge branch '6.4' into 7.0
Browse files Browse the repository at this point in the history
* 6.4:
  Minor: remove duplicated lines
  • Loading branch information
javiereguiluz committed Feb 9, 2024
2 parents 3172768 + 230adac commit 847493b
Show file tree
Hide file tree
Showing 46 changed files with 25 additions and 55 deletions.
1 change: 0 additions & 1 deletion cache.rst
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,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 @@ -135,7 +135,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 @@ -35,7 +35,6 @@ the second and third parameters::
$defaultLifetime
);


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

Expand Down Expand Up @@ -67,7 +66,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 @@ -32,7 +32,6 @@ the second and third parameters::
$defaultLifetime
);


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

Expand Down Expand Up @@ -64,7 +63,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 configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,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 console.rst
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,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 @@ -605,7 +605,6 @@ that behavior, use the `orphanRemoval`_ option inside ``Category``:
#[ORM\OneToMany(targetEntity: Product::class, mappedBy: 'category', orphanRemoval: true)]
private array $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 @@ -465,7 +465,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 @@ -573,7 +573,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 @@ -141,7 +141,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 with Webpack Encore
.. 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 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
1 change: 0 additions & 1 deletion messenger.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2681,7 +2681,6 @@ and a different instance will be created per bus.
- 'App\Middleware\MyMiddleware'
- 'App\Middleware\AnotherMiddleware'
.. 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 @@ -222,7 +222,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
24 changes: 24 additions & 0 deletions reference/configuration/framework.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2847,6 +2847,30 @@ 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
~~~~~~~

decryption_env_var
..................

**type**: ``string`` **default**: ``base64:default::SYMFONY_DECRYPTION_SECRET``

The environment variable that contains the decryption key.

local_dotenv_file
.................

**type**: ``string`` **default**: ``%kernel.project_dir%/.env.%kernel.environment%.local``

Path to an dotenv file that holds secrets. This is primarily used for testing.

vault_directory
...............

**type**: ``string`` **default**: ``%kernel.project_dir%/config/secrets/%kernel.environment%``

The directory where the vault of secrets is stored.

.. _configuration-framework-serializer:

serializer
Expand Down
1 change: 0 additions & 1 deletion reference/constraints/Country.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,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/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 @@ -35,7 +35,6 @@ and ``50``, you might add the following:
protected string $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 @@ -63,7 +63,6 @@ positive number (greater than zero):
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Component\Validator\Mapping\ClassMetadata;
class Employee
{
// ...
Expand Down
1 change: 0 additions & 1 deletion reference/constraints/Ulid.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,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 @@ -1815,7 +1815,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 @@ -281,7 +281,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 @@ -67,7 +67,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
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 serializer/custom_encoders.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ create your own encoder that uses the
}
}


Registering it in your app
--------------------------

Expand Down
2 changes: 0 additions & 2 deletions service_container.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,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 @@ -502,7 +501,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
3 changes: 0 additions & 3 deletions service_container/autowiring.rst
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ both services:
->autowire();
};
Now, you can use the ``TwitterClient`` service immediately in a controller::

// src/Controller/DefaultController.php
Expand Down Expand Up @@ -252,7 +251,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.
Expand Down Expand Up @@ -357,7 +355,6 @@ To fix that, add an :ref:`alias <service-autowiring-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``.
Expand Down
1 change: 0 additions & 1 deletion service_container/factories.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ create its object:
->factory([NewsletterManagerStaticFactory::class, 'createNewsletterManager']);
};
.. note::

When using a factory to create services, the value chosen for class
Expand Down
1 change: 0 additions & 1 deletion service_container/service_decoration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,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()));
Expand Down

0 comments on commit 847493b

Please sign in to comment.