Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor #5454 Add compatibility with ValueResolverInterface (javieregui…
…luz) This PR was squashed before being merged into the 4.x branch. Discussion ---------- Add compatibility with ValueResolverInterface This avoids a deprecation when upgrading to Symfony 6.2. See symfony/symfony#47363 Commits ------- 497b39c Add compatibility with ValueResolverInterface
- Loading branch information
Showing
3 changed files
with
25 additions
and
6 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,13 @@ | ||
<?php | ||
|
||
namespace EasyCorp\Bundle\EasyAdminBundle\ArgumentResolver; | ||
|
||
use Symfony\Component\HttpKernel\Controller\ArgumentValueResolverInterface; | ||
use Symfony\Component\HttpKernel\Controller\ValueResolverInterface; | ||
|
||
// TODO: remove this file when all supported Symfony versions include ValueResolverInterface | ||
if (class_exists(ValueResolverInterface::class)) { | ||
class_alias(ValueResolverInterface::class, CompatValueResolverInterface::class); | ||
} else { | ||
class_alias(ArgumentValueResolverInterface::class, CompatValueResolverInterface::class); | ||
} |