Created
November 30, 2019 19:17
-
-
Save cesurapp/959f56ddc9a9fe3aee365c6ba3e7653f to your computer and use it in GitHub Desktop.
Symfony 4.4 or 5.x Override AuthorizationChecker
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
<?php | |
# src/Kernel.php | |
use App\DependencyInjection\AuthorizationCheckerOverride; | |
class Kernel extends BaseKernel | |
{ | |
protected function build(ContainerBuilder $container) | |
{ | |
$container->addCompilerPass(new AuthorizationCheckerOverride()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment