fix eventsubscriver

This commit is contained in:
Simon Vieille 2022-12-13 18:12:41 +01:00
parent 7f0b6cd3c2
commit 8bbe033e6f
Signed by: deblan
GPG key ID: 579388D585F70417
2 changed files with 4 additions and 4 deletions

View file

@ -63,12 +63,12 @@ class FooController
Events are dispatched before and after creation, update and deletion. All entities of Muprh use the entity manager. Events are dispatched before and after creation, update and deletion. All entities of Muprh use the entity manager.
``` ```
// src/EventSuscriber/MyEntityEventSubscriber.php // src/EventSubscriber/MyEntityEventSubscriber.php
namespace App\EventSubscriber; namespace App\EventSubscriber;
use App\Core\Entity\EntityInterface; use App\Core\Entity\EntityInterface;
use App\Core\Event\EntityManager\EntityManagerEvent; use App\Core\Event\EntityManager\EntityManagerEvent;
use App\Core\EventSuscriber\EntityManagerEventSubscriber; use App\Core\EventSubscriber\EntityManagerEventSubscriber;
use App\Entity\MyEntity; use App\Entity\MyEntity;
class MyEntityEventSubscriber extends EntityManagerEventSubscriber class MyEntityEventSubscriber extends EntityManagerEventSubscriber

View file

@ -143,8 +143,8 @@ public function getMyBlock(): Block
When a page is being edited, the options can be set as follows: When a page is being edited, the options can be set as follows:
``` ```
// src/EventSuscriber/PageEventSubscriber.php // src/EventSubscriber/PageEventSubscriber.php
namespace App\EventSuscriber; namespace App\EventSubscriber;
use App\Core\Event\Page\PageEditEvent; use App\Core\Event\Page\PageEditEvent;
use App\Entity\Page\YourPage; use App\Entity\Page\YourPage;