Skip to content

Commit 1b90004

Browse files
committed
minor #20973 [Doctrine] Remove redundant example with attribute (HypeMC)
This PR was merged into the 6.4 branch. Discussion ---------- [Doctrine] Remove redundant example with attribute The attribute block is redundant, as this section covers alternatives to an attribute already demonstrated in the previous section. Commits ------- 62b7149 [Doctrine] Remove redundant example with attribute
2 parents e70e474 + 62b7149 commit 1b90004

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

doctrine/events.rst

-17
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

0 commit comments

Comments
 (0)