Skip to content

Commit 99bdf47

Browse files
Merge branch '6.1' into TristanPouliquen-patch-request-matcher
2 parents 5ee57d9 + 122c5c2 commit 99bdf47

File tree

264 files changed

+2313
-4080
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

264 files changed

+2313
-4080
lines changed

.doctor-rst.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,16 @@ rules:
5353

5454
# master
5555
versionadded_directive_major_version:
56-
major_version: 5
56+
major_version: 6
5757

5858
versionadded_directive_min_version:
59-
min_version: '5.0'
59+
min_version: '6.0'
6060

6161
deprecated_directive_major_version:
62-
major_version: 5
62+
major_version: 6
6363

6464
deprecated_directive_min_version:
65-
min_version: '5.0'
65+
min_version: '6.0'
6666

6767
# do not report as violation
6868
whitelist:
@@ -89,7 +89,7 @@ whitelist:
8989
- '.. versionadded:: 1.11' # MakerBundle
9090
- '.. versionadded:: 1.3' # MakerBundle
9191
- '.. versionadded:: 1.8' # MakerBundle
92-
- '.. versionadded:: 1.6' # Flex in setup/upgrade_minor.rst
92+
- '.. versionadded:: 1.18' # Flex in setup/upgrade_minor.rst
9393
- '.. versionadded:: 1.0.0' # Encore
9494
- '0 => 123' # assertion for var_dumper - components/var_dumper.rst
9595
- '1 => "foo"' # assertion for var_dumper - components/var_dumper.rst

.github/CODE_OF_CONDUCT.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ If your pull request fixes a BUG, use the oldest maintained branch that contains
44
the bug (see https://symfony.com/releases for the list of maintained branches).
55
66
If your pull request documents a NEW FEATURE, use the same Symfony branch where
7-
the feature was introduced (and `5.x` for features of unreleased versions).
7+
the feature was introduced (and `6.x` for features of unreleased versions).
88
99
-->

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ jobs:
118118

119119
- name: Install dependencies
120120
if: ${{ steps.find-files.outputs.files }}
121-
run: composer create-project symfony-tools/code-block-checker _checker
121+
run: composer create-project symfony-tools/code-block-checker:@dev _checker
122122

123123
- name: Install test application
124124
if: ${{ steps.find-files.outputs.files }}

CODE_OF_CONDUCT.md

Lines changed: 0 additions & 83 deletions
This file was deleted.

_build/redirection_map

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,11 +513,14 @@
513513
/components/stopwatch https://github.com/symfony/stopwatch
514514
/service_container/3.3-di-changes https://symfony.com/doc/3.4/service_container/3.3-di-changes.html
515515
/frontend/encore/shared-entry /frontend/encore/split-chunks
516+
/frontend/encore/page-specific-assets /frontend/encore/simple-example#page-specific-javascript-or-css
516517
/testing/functional_tests_assertions /testing#testing-application-assertions
517518
/components https://symfony.com/components
518519
/components/index https://symfony.com/components
520+
/serializer/normalizers /components/serializer#normalizers
519521
/logging/monolog_regex_based_excludes /logging/monolog_exclude_http_codes
520522
/security/named_encoders /security/named_hashers
523+
/components/inflector /components/string#inflector
521524
/security/experimental_authenticators /security
522525
/security/user_provider /security/user_providers
523526
/security/reset_password /security/passwords#reset-password
@@ -532,3 +535,11 @@
532535
/security/authenticator_manager /security
533536
/security/multiple_guard_authenticators /security/entry_point
534537
/security/guard_authentication /security/custom_authenticator
538+
/components/security/authentication /security#authenticating-users
539+
/components/security/authorization /security#access-control-authorization
540+
/components/security/firewall /security#the-firewall
541+
/components/security/secure_tools /security/passwords
542+
/components/security /security
543+
/email /mailer
544+
/frontend/assetic /frontend
545+
/frontend/assetic/index /frontend

_build/spelling_word_list.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ Akamai
33
analytics
44
Ansi
55
Ansible
6-
Assetic
76
async
87
authenticator
98
authenticators
102 KB
Loading
-1.8 KB
Loading
Loading
Binary file not shown.
Loading
41.8 KB
Loading

_images/profiler/web-interface.png

49.6 KB
Loading

_images/quick_tour/no_routes_page.png

-502 KB
Loading
-58.2 KB
Binary file not shown.

_images/release-process.jpg

-308 KB
Binary file not shown.

_images/security/profiler-badges.png

148 KB
Loading

best_practices.rst

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ to create new Symfony applications:
3030

3131
.. code-block:: terminal
3232
33-
$ symfony new my_project_name
33+
$ symfony new my_project_directory
3434
3535
Under the hood, this Symfony binary command executes the needed `Composer`_
3636
command to :ref:`create a new Symfony application <creating-symfony-applications>`
@@ -269,7 +269,7 @@ Templates
269269
Use Snake Case for Template Names and Variables
270270
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
271271

272-
Use lowercased snake_case for template names, directories and variables (e.g.
272+
Use lowercase snake_case for template names, directories and variables (e.g.
273273
``user_profile`` instead of ``userProfile`` and ``product/edit_form.html.twig``
274274
instead of ``Product/EditForm.html.twig``).
275275

@@ -371,14 +371,15 @@ Use the ``auto`` Password Hasher
371371

372372
The :ref:`auto password hasher <reference-security-encoder-auto>` automatically
373373
selects the best possible encoder/hasher depending on your PHP installation.
374-
Starting from Symfony 5.3, the default auto hasher is ``bcrypt``.
374+
Currently, the default auto hasher is ``bcrypt``.
375375

376376
Use Voters to Implement Fine-grained Security Restrictions
377377
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
378378

379379
If your security logic is complex, you should create custom
380380
:doc:`security voters </security/voters>` instead of defining long expressions
381-
inside the ``@Security`` annotation.
381+
inside the ``#[Security]`` attribute (or in the ``@Security`` annotation if your
382+
PHP version doesn't support attributes yet).
382383

383384
Web Assets
384385
----------
@@ -387,7 +388,7 @@ Use Webpack Encore to Process Web Assets
387388
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
388389

389390
Web assets are things like CSS, JavaScript and image files that make the
390-
frontend of your site look and work great. `Webpack`_ is the leading JavaScript
391+
frontend of your site looks and works great. `Webpack`_ is the leading JavaScript
391392
module bundler that compiles, transforms and packages assets for usage in a browser.
392393

393394
:doc:`Webpack Encore </frontend>` is a JavaScript library that gets rid of most
@@ -439,7 +440,9 @@ Add this test while creating your application because it requires little effort
439440
and checks that none of your pages returns an error. Later, you'll add more
440441
specific tests for each page.
441442

442-
Hardcode URLs in a Functional Test
443+
.. _hardcode-urls-in-a-functional-test:
444+
445+
Hard-code URLs in a Functional Test
443446
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
444447

445448
In Symfony applications, it's recommended to :ref:`generate URLs <routing-generating-urls>`

bundles/extension.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ This is how the extension of an AcmeHelloBundle should look like::
3434
namespace Acme\HelloBundle\DependencyInjection;
3535

3636
use Symfony\Component\DependencyInjection\ContainerBuilder;
37-
use Symfony\Component\DependencyInjection\Extension\Extension;
37+
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
3838

3939
class AcmeHelloExtension extends Extension
4040
{

cache.rst

Lines changed: 4 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,9 @@ The following example shows a typical usage of the cache::
2727
// ... and to remove the cache key
2828
$pool->delete('my_cache_key');
2929

30-
Symfony supports Cache Contracts, PSR-6/16 and Doctrine Cache interfaces.
30+
Symfony supports Cache Contracts and PSR-6/16 interfaces.
3131
You can read more about these at the :doc:`component documentation </components/cache>`.
3232

33-
.. deprecated:: 5.4
34-
35-
Support for Doctrine Cache was deprecated in Symfony 5.4
36-
and it will be removed in Symfony 6.0.
37-
3833
.. _cache-configuration-with-frameworkbundle:
3934

4035
Configuring Cache with FrameworkBundle
@@ -50,7 +45,7 @@ of:
5045
An adapter is a *template* that you use to create pools.
5146
**Provider**
5247
A provider is a service that some adapters use to connect to the storage.
53-
Redis and Memcached are example of such adapters. If a DSN is used as the
48+
Redis and Memcached are examples of such adapters. If a DSN is used as the
5449
provider then a service is automatically created.
5550

5651
There are two pools that are always enabled by default. They are ``cache.app`` and
@@ -104,18 +99,13 @@ The Cache component comes with a series of adapters pre-configured:
10499

105100
* :doc:`cache.adapter.apcu </components/cache/adapters/apcu_adapter>`
106101
* :doc:`cache.adapter.array </components/cache/adapters/array_cache_adapter>`
107-
* :doc:`cache.adapter.doctrine </components/cache/adapters/doctrine_adapter>`
108102
* :doc:`cache.adapter.filesystem </components/cache/adapters/filesystem_adapter>`
109103
* :doc:`cache.adapter.memcached </components/cache/adapters/memcached_adapter>`
110104
* :doc:`cache.adapter.pdo </components/cache/adapters/pdo_doctrine_dbal_adapter>`
111105
* :doc:`cache.adapter.psr6 </components/cache/adapters/proxy_adapter>`
112106
* :doc:`cache.adapter.redis </components/cache/adapters/redis_adapter>`
113107
* :ref:`cache.adapter.redis_tag_aware <redis-tag-aware-adapter>` (Redis adapter optimized to work with tags)
114108

115-
.. versionadded:: 5.2
116-
117-
``cache.adapter.redis_tag_aware`` has been introduced in Symfony 5.2.
118-
119109
Some of these adapters could be configured via shortcuts. Using these shortcuts
120110
will create pools with service IDs that follow the pattern ``cache.[type]``.
121111

@@ -128,8 +118,6 @@ will create pools with service IDs that follow the pattern ``cache.[type]``.
128118
cache:
129119
directory: '%kernel.cache_dir%/pools' # Only used with cache.adapter.filesystem
130120
131-
# service: cache.doctrine
132-
default_doctrine_provider: 'app.doctrine_cache'
133121
# service: cache.psr6
134122
default_psr6_provider: 'app.my_psr6_service'
135123
# service: cache.redis
@@ -153,15 +141,13 @@ will create pools with service IDs that follow the pattern ``cache.[type]``.
153141
154142
<framework:config>
155143
<!--
156-
default_doctrine_provider: Service: cache.doctrine
157144
default_psr6_provider: Service: cache.psr6
158145
default_redis_provider: Service: cache.redis
159146
default_memcached_provider: Service: cache.memcached
160147
default_pdo_provider: Service: cache.pdo
161148
-->
162149
<!-- "directory" attribute is only used with cache.adapter.filesystem -->
163150
<framework:cache directory="%kernel.cache_dir%/pools"
164-
default_doctrine_provider="app.doctrine_cache"
165151
default_psr6_provider="app.my_psr6_service"
166152
default_redis_provider="redis://localhost"
167153
default_memcached_provider="memcached://localhost"
@@ -179,8 +165,6 @@ will create pools with service IDs that follow the pattern ``cache.[type]``.
179165
$framework->cache()
180166
// Only used with cache.adapter.filesystem
181167
->directory('%kernel.cache_dir%/pools')
182-
// Service: cache.doctrine
183-
->defaultDoctrineProvider('app.doctrine_cache')
184168
// Service: cache.psr6
185169
->defaultPsr6Provider('app.my_psr6_service')
186170
// Service: cache.redis
@@ -192,11 +176,6 @@ will create pools with service IDs that follow the pattern ``cache.[type]``.
192176
;
193177
};
194178
195-
.. deprecated:: 5.4
196-
197-
The ``default_doctrine_provider`` option was deprecated in Symfony 5.4 and
198-
it will be removed in Symfony 6.0.
199-
200179
.. _cache-create-pools:
201180

202181
Creating Custom (Namespaced) Pools
@@ -730,11 +709,6 @@ Clear all caches everywhere:
730709
Encrypting the Cache
731710
--------------------
732711

733-
.. versionadded:: 5.1
734-
735-
The :class:`Symfony\\Component\\Cache\\Marshaller\\SodiumMarshaller`
736-
class was introduced in Symfony 5.1.
737-
738712
To encrypt the cache using ``libsodium``, you can use the
739713
:class:`Symfony\\Component\\Cache\\Marshaller\\SodiumMarshaller`.
740714

@@ -810,5 +784,5 @@ Then, register the ``SodiumMarshaller`` service using this key:
810784

811785
When configuring multiple keys, the first key will be used for reading and
812786
writing, and the additional key(s) will only be used for reading. Once all
813-
cache items encrypted with the old key have expired, you can remove
814-
``OLD_CACHE_DECRYPTION_KEY`` completely.
787+
cache items encrypted with the old key have expired, you can completely remove
788+
``OLD_CACHE_DECRYPTION_KEY``.

components/asset.rst

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The Asset Component
88
The Asset component manages URL generation and versioning of web assets such
99
as CSS stylesheets, JavaScript files and image files.
1010

11-
In the past, it was common for web applications to hardcode URLs of web assets.
11+
In the past, it was common for web applications to hard-code the URLs of web assets.
1212
For example:
1313

1414
.. code-block:: html
@@ -183,10 +183,6 @@ listed in the manifest::
183183
echo $package->getUrl('not-found.css');
184184
// error:
185185

186-
.. versionadded:: 5.4
187-
188-
The ``$strictMode`` option was introduced in Symfony 5.4.
189-
190186
If your JSON file is not on your local filesystem but is accessible over HTTP,
191187
use the :class:`Symfony\\Component\\Asset\\VersionStrategy\\RemoteJsonManifestVersionStrategy`
192188
with the :doc:`HttpClient component </http_client>`::
@@ -199,10 +195,6 @@ with the :doc:`HttpClient component </http_client>`::
199195
$manifestUrl = 'https://cdn.example.com/rev-manifest.json';
200196
$package = new Package(new RemoteJsonManifestVersionStrategy($manifestUrl, $httpClient));
201197

202-
.. versionadded:: 5.1
203-
204-
The ``RemoteJsonManifestVersionStrategy`` was introduced in Symfony 5.1.
205-
206198
Custom Version Strategies
207199
.........................
208200

@@ -395,7 +387,7 @@ they all have different base paths::
395387
$packages = new Packages($defaultPackage, $namedPackages);
396388

397389
The ``Packages`` class allows to define a default package, which will be applied
398-
to assets that don't define the name of package to use. In addition, this
390+
to assets that don't define the name of the package to use. In addition, this
399391
application defines a package named ``img`` to serve images from an external
400392
domain and a ``doc`` package to avoid repeating long paths when linking to a
401393
document inside a template::

0 commit comments

Comments
 (0)