Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b36bab2

Browse filesBrowse files
committed
Merge branch '7.2' into 7.3
* 7.2: Highligh 'extensions' instead of 'mimeTypes' for File constraint Update messenger.rst [Doctrine] Remove redundant example with attribute Changed text to mention one Product object instead of many [WebLink] Hint that prerender is deprecated
2 parents 4909b56 + fe5cf5e commit b36bab2
Copy full SHA for b36bab2

File tree

5 files changed

+7
-25
lines changed
Filter options

5 files changed

+7
-25
lines changed

‎controller/upload_file.rst

Copy file name to clipboardExpand all lines: controller/upload_file.rst
+2-5Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,8 @@ so Symfony doesn't try to get/set its value from the related entity::
7777
'constraints' => [
7878
new File(
7979
maxSize: '1024k',
80-
mimeTypes: [
81-
'application/pdf',
82-
'application/x-pdf',
83-
],
84-
mimeTypesMessage: 'Please upload a valid PDF document',
80+
extensions: ['pdf'],
81+
extensionsMessage: 'Please upload a valid PDF document',
8582
)
8683
],
8784
])

‎doctrine/associations.rst

Copy file name to clipboardExpand all lines: doctrine/associations.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ following method to the ``ProductRepository`` class::
501501
}
502502
}
503503

504-
This will *still* return an array of ``Product`` objects. But now, when you call
504+
This will *still* return a ``Product`` object. But now, when you call
505505
``$product->getCategory()`` and use that data, no second query is made.
506506

507507
Now, you can use this method in your controller to query for a ``Product``

‎doctrine/events.rst

Copy file name to clipboardExpand all lines: doctrine/events.rst
-17Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -304,23 +304,6 @@ listener in the Symfony application by creating a new service for it and
304304

305305
.. configuration-block::
306306

307-
.. code-block:: php-attributes
308-
309-
// src/EventListener/SearchIndexer.php
310-
namespace App\EventListener;
311-
312-
use Doctrine\Bundle\DoctrineBundle\Attribute\AsDoctrineListener;
313-
use Doctrine\ORM\Event\PostPersistEventArgs;
314-
315-
#[AsDoctrineListener('postPersist'/*, 500, 'default'*/)]
316-
class SearchIndexer
317-
{
318-
public function postPersist(PostPersistEventArgs $event): void
319-
{
320-
// ...
321-
}
322-
}
323-
324307
.. code-block:: yaml
325308
326309
# config/services.yaml

‎messenger.rst

Copy file name to clipboardExpand all lines: messenger.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1504,7 +1504,7 @@ RabbitMQ. Install it by running:
15041504
15051505
$ composer require symfony/amqp-messenger
15061506
1507-
The AMQP transport DSN may looks like this:
1507+
The AMQP transport DSN may look like this:
15081508

15091509
.. code-block:: env
15101510

‎web_link.rst

Copy file name to clipboardExpand all lines: web_link.rst
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ The WebLink component provides the following Twig functions to send those hints:
146146
* ``prefetch()``: "identifies a resource that might be required by the next
147147
navigation, and that the user agent *should* fetch, such that the user agent
148148
can deliver a faster response once the resource is requested in the future".
149-
* ``prerender()``: "identifies a resource that might be required by the next
149+
* ``prerender()``: " **deprecated** and superseded by the `Speculation Rules API`_,
150+
identifies a resource that might be required by the next
150151
navigation, and that the user agent *should* fetch and execute, such that the
151152
user agent can deliver a faster response once the resource is requested later".
152153

@@ -206,3 +207,4 @@ You can also add links to the HTTP response directly from controllers and servic
206207
.. _`Akamai`: https://http2.akamai.com/
207208
.. _`link defined in the HTML specification`: https://html.spec.whatwg.org/dev/links.html#linkTypes
208209
.. _`PSR-13`: https://www.php-fig.org/psr/psr-13/
210+
.. _`Speculation Rules API`: https://developer.mozilla.org/docs/Web/API/Speculation_Rules_API

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.