-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BC layer symfony/event-dispatcher (#201)
* Added layer to prevent deprecation notices for the sub 4.4 event dispatcher signature.
- Loading branch information
Showing
6 changed files
with
89 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
/** | ||
* Gearman Bundle for Symfony2 | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* Feel free to edit as you please, and have fun. | ||
* | ||
* @author Marc Morera <[email protected]> | ||
*/ | ||
|
||
namespace Mmoreram\GearmanBundle\Event\Abstracts; | ||
|
||
use Symfony\Component\EventDispatcher\Event as BaseEventDeprecated; | ||
use Symfony\Contracts\EventDispatcher\Event as BaseEvent; | ||
|
||
// Symfony 4.3 BC layer | ||
if (class_exists(BaseEvent::class)) { | ||
/** | ||
* @internal | ||
*/ | ||
abstract class Event extends BaseEvent | ||
{ | ||
} | ||
} else { | ||
/** | ||
* @internal | ||
*/ | ||
abstract class Event extends BaseEventDeprecated | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters