-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disallow EasyAdminBundle 4.5.2 because of Enum support
- Loading branch information
1 parent
aee5a11
commit f78e11e
Showing
4 changed files
with
39 additions
and
2 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
25 changes: 25 additions & 0 deletions
25
src/DependencyInjection/CompilerPass/EasyAdminMenuItemMatcher.php
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,25 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Protung\EasyAdminPlusBundle\DependencyInjection\CompilerPass; | ||
|
||
use EasyCorp\Bundle\EasyAdminBundle\Factory\MenuFactory; | ||
use EasyCorp\Bundle\EasyAdminBundle\Menu\MenuItemMatcherInterface; | ||
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; | ||
use Symfony\Component\DependencyInjection\ContainerBuilder; | ||
use Symfony\Component\DependencyInjection\Reference; | ||
|
||
/** | ||
* @see https://github.com/EasyCorp/EasyAdminBundle/pull/5620 | ||
* | ||
* @codeCoverageIgnore | ||
*/ | ||
final class EasyAdminMenuItemMatcher implements CompilerPassInterface | ||
{ | ||
public function process(ContainerBuilder $container): void | ||
{ | ||
$serviceDefinition = $container->getDefinition(MenuFactory::class); | ||
$serviceDefinition->setArgument(4, new Reference(MenuItemMatcherInterface::class)); | ||
} | ||
} |
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