-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #97 from KDederichs/master
Symfony 5 support
- Loading branch information
Showing
24 changed files
with
1,624 additions
and
931 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
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,22 @@ | ||
<?php | ||
|
||
namespace Noxlogic\RateLimitBundle\Events; | ||
|
||
use Symfony\Component\EventDispatcher\Event as LegacyEvent; | ||
use Symfony\Contracts\EventDispatcher\Event; | ||
|
||
if (!class_exists('Symfony\\Contracts\\EventDispatcher\\Event')) { | ||
/** | ||
* Symfony 3.4 | ||
*/ | ||
abstract class AbstractEvent extends LegacyEvent | ||
{ | ||
} | ||
} else { | ||
/** | ||
* Symfony >= 4.3 | ||
*/ | ||
abstract class AbstractEvent extends Event | ||
{ | ||
} | ||
} |
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,22 @@ | ||
<?php | ||
|
||
|
||
namespace Noxlogic\RateLimitBundle\Events; | ||
use Symfony\Component\HttpKernel\Event\ControllerEvent; | ||
use Symfony\Component\HttpKernel\Event\FilterControllerEvent as LegacyEvent; | ||
|
||
if (!class_exists('Symfony\\Component\HttpKernel\\Event\\ControllerEvent')) { | ||
/** | ||
* Symfony 3.4 | ||
*/ | ||
class ProxyFilterControllerEvent extends LegacyEvent | ||
{ | ||
} | ||
} else { | ||
/** | ||
* Symfony >= 4.3 | ||
*/ | ||
class ProxyFilterControllerEvent extends ControllerEvent | ||
{ | ||
} | ||
} |
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,22 @@ | ||
<?php | ||
|
||
|
||
namespace Noxlogic\RateLimitBundle\Events; | ||
use Symfony\Component\HttpKernel\Event\ResponseEvent; | ||
use Symfony\Component\HttpKernel\Event\FilterResponseEvent as LegacyEvent; | ||
|
||
if (!class_exists('Symfony\\Component\HttpKernel\\Event\\ResponseEvent')) { | ||
/** | ||
* Symfony 3.4 | ||
*/ | ||
class ProxyFilterResponseEvent extends LegacyEvent | ||
{ | ||
} | ||
} else { | ||
/** | ||
* Symfony >= 4.3 | ||
*/ | ||
class ProxyFilterResponseEvent extends ResponseEvent | ||
{ | ||
} | ||
} |
Oops, something went wrong.