Skip to content

Commit b8ea7e3

Browse files
committed
minor #1129 Rename namespace App\Events to App\Event to be in sync with the docs (rosier)
This PR was merged into the master branch. Discussion ---------- Rename namespace App\Events to App\Event to be in sync with the docs Fixes #1092 Commits ------- 9a84639 Rename namespace App\Events to App\Event to be in sync with the docs
2 parents ef5abdd + 9a84639 commit b8ea7e3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Controller/BlogController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use App\Entity\Comment;
1515
use App\Entity\Post;
16-
use App\Events\CommentCreatedEvent;
16+
use App\Event\CommentCreatedEvent;
1717
use App\Form\CommentType;
1818
use App\Repository\PostRepository;
1919
use App\Repository\TagRepository;

src/Events/CommentCreatedEvent.php renamed to src/Event/CommentCreatedEvent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace App\Events;
12+
namespace App\Event;
1313

1414
use App\Entity\Comment;
1515
use Symfony\Contracts\EventDispatcher\Event;

src/EventSubscriber/CommentNotificationSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace App\EventSubscriber;
1313

1414
use App\Entity\Comment;
15-
use App\Events\CommentCreatedEvent;
15+
use App\Event\CommentCreatedEvent;
1616
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
1717
use Symfony\Component\Mailer\MailerInterface;
1818
use Symfony\Component\Mime\Email;

0 commit comments

Comments
 (0)