forked from dustin10/VichUploaderBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make it working with all Symfony versions
- Loading branch information
Showing
5 changed files
with
8 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
namespace Vich\UploaderBundle\Event; | ||
|
||
use Symfony\Component\EventDispatcher\Event as BaseEvent; | ||
use Symfony\Component\HttpKernel\Kernel; | ||
use Symfony\Contracts\EventDispatcher\Event as ContractEvent; | ||
use Vich\UploaderBundle\Mapping\PropertyMapping; | ||
|
||
|
@@ -11,7 +12,7 @@ | |
* | ||
* @author Kévin Gomez <[email protected]> | ||
*/ | ||
if (class_exists(ContractEvent::class)) { | ||
if ('42' !== Kernel::MAJOR_VERSION.Kernel::MINOR_VERSION && class_exists(ContractEvent::class)) { | ||
class Event extends ContractEvent | ||
{ | ||
protected $object; | ||
|
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