fix eventsubscriver
This commit is contained in:
parent
7f0b6cd3c2
commit
8bbe033e6f
|
@ -63,12 +63,12 @@ class FooController
|
|||
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;
|
||||
|
||||
use App\Core\Entity\EntityInterface;
|
||||
use App\Core\Event\EntityManager\EntityManagerEvent;
|
||||
use App\Core\EventSuscriber\EntityManagerEventSubscriber;
|
||||
use App\Core\EventSubscriber\EntityManagerEventSubscriber;
|
||||
use App\Entity\MyEntity;
|
||||
|
||||
class MyEntityEventSubscriber extends EntityManagerEventSubscriber
|
||||
|
|
|
@ -143,8 +143,8 @@ public function getMyBlock(): Block
|
|||
When a page is being edited, the options can be set as follows:
|
||||
|
||||
```
|
||||
// src/EventSuscriber/PageEventSubscriber.php
|
||||
namespace App\EventSuscriber;
|
||||
// src/EventSubscriber/PageEventSubscriber.php
|
||||
namespace App\EventSubscriber;
|
||||
|
||||
use App\Core\Event\Page\PageEditEvent;
|
||||
use App\Entity\Page\YourPage;
|
||||
|
|
Loading…
Reference in a new issue