File tree Expand file tree Collapse file tree 7 files changed +29
-6
lines changed Expand file tree Collapse file tree 7 files changed +29
-6
lines changed Original file line number Diff line number Diff line change 12
12
namespace FOS \CommentBundle \Event ;
13
13
14
14
use FOS \CommentBundle \Model \CommentInterface ;
15
- use Symfony \Component \EventDispatcher \Event ;
16
15
17
16
/**
18
17
* An event that occurs related to a comment.
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ /*
4
+ * This file is part of the FOSCommentBundle package.
5
+ *
6
+ * (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>
7
+ *
8
+ * This source file is subject to the MIT license that is bundled
9
+ * with this source code in the file LICENSE.
10
+ */
11
+
12
+ namespace FOS \CommentBundle \Event ;
13
+
14
+ use Symfony \Component \EventDispatcher \Event as BaseEventDeprecated ;
15
+ use Symfony \Contracts \EventDispatcher \Event as BaseEvent ;
16
+
17
+ // Symfony 4.3 BC layer
18
+ if (class_exists (BaseEvent::class)) {
19
+ class Event extends BaseEvent
20
+ {
21
+ }
22
+ } else {
23
+ class Event extends BaseEventDeprecated
24
+ {
25
+ }
26
+ }
Original file line number Diff line number Diff line change 12
12
namespace FOS \CommentBundle \Event ;
13
13
14
14
use FOS \CommentBundle \Model \ThreadInterface ;
15
- use Symfony \Component \EventDispatcher \Event ;
16
15
17
16
/**
18
17
* An event that occurs related to a thread.
Original file line number Diff line number Diff line change 12
12
namespace FOS \CommentBundle \Event ;
13
13
14
14
use FOS \CommentBundle \Model \VoteInterface ;
15
- use Symfony \Component \EventDispatcher \Event ;
16
15
17
16
/**
18
17
* An event that occurs related to a vote.
Original file line number Diff line number Diff line change 11
11
12
12
namespace FOS \CommentBundle \Model ;
13
13
14
+ use FOS \CommentBundle \Event \Event ;
14
15
use FOS \CommentBundle \Event \CommentEvent ;
15
16
use FOS \CommentBundle \Event \CommentPersistEvent ;
16
17
use FOS \CommentBundle \Events ;
17
18
use FOS \CommentBundle \Sorting \SortingFactory ;
18
19
use FOS \CommentBundle \Sorting \SortingInterface ;
19
20
use InvalidArgumentException ;
20
- use Symfony \Component \EventDispatcher \Event ;
21
21
use Symfony \Component \EventDispatcher \EventDispatcherInterface ;
22
22
use Symfony \Component \EventDispatcher \LegacyEventDispatcherProxy ;
23
23
Original file line number Diff line number Diff line change 11
11
12
12
namespace FOS \CommentBundle \Model ;
13
13
14
+ use FOS \CommentBundle \Event \Event ;
14
15
use FOS \CommentBundle \Event \ThreadEvent ;
15
16
use FOS \CommentBundle \Events ;
16
- use Symfony \Component \EventDispatcher \Event ;
17
17
use Symfony \Component \EventDispatcher \EventDispatcherInterface ;
18
18
use Symfony \Component \EventDispatcher \LegacyEventDispatcherProxy ;
19
19
Original file line number Diff line number Diff line change 11
11
12
12
namespace FOS \CommentBundle \Model ;
13
13
14
+ use FOS \CommentBundle \Event \Event ;
14
15
use FOS \CommentBundle \Event \VoteEvent ;
15
16
use FOS \CommentBundle \Event \VotePersistEvent ;
16
17
use FOS \CommentBundle \Events ;
17
- use Symfony \Component \EventDispatcher \Event ;
18
18
use Symfony \Component \EventDispatcher \EventDispatcherInterface ;
19
19
use Symfony \Component \EventDispatcher \LegacyEventDispatcherProxy ;
20
20
You can’t perform that action at this time.
0 commit comments