DependencyInjection/Compiler/EntityManagerCompilerPass.php 1 location
|
@@ 11-25 (lines=15) @@
|
| 8 |
|
/** |
| 9 |
|
* CustomUserProviderCompilerPass. |
| 10 |
|
*/ |
| 11 |
|
final class EntityManagerCompilerPass implements CompilerPassInterface |
| 12 |
|
{ |
| 13 |
|
/** |
| 14 |
|
* {@inheritdoc} |
| 15 |
|
*/ |
| 16 |
|
public function process(ContainerBuilder $container) |
| 17 |
|
{ |
| 18 |
|
$entityManagerId = $container->getParameter('gesdinet.jwtrefreshtoken.entity_manager.id'); |
| 19 |
|
if (!$entityManagerId) { |
| 20 |
|
return; |
| 21 |
|
} |
| 22 |
|
|
| 23 |
|
$container->setAlias('gesdinet.jwtrefreshtoken.entity_manager', $entityManagerId); |
| 24 |
|
} |
| 25 |
|
} |
| 26 |
|
|
DependencyInjection/Compiler/UserCheckerCompilerPass.php 1 location
|
@@ 11-25 (lines=15) @@
|
| 8 |
|
/** |
| 9 |
|
* UserCheckerCompilerPass. |
| 10 |
|
*/ |
| 11 |
|
final class UserCheckerCompilerPass implements CompilerPassInterface |
| 12 |
|
{ |
| 13 |
|
/** |
| 14 |
|
* {@inheritdoc} |
| 15 |
|
*/ |
| 16 |
|
public function process(ContainerBuilder $container) |
| 17 |
|
{ |
| 18 |
|
$userCheckerId = $container->getParameter('gesdinet.jwtrefreshtoken.user_checker.id'); |
| 19 |
|
if (!$userCheckerId) { |
| 20 |
|
return; |
| 21 |
|
} |
| 22 |
|
|
| 23 |
|
$container->setAlias('gesdinet.jwtrefreshtoken.user_checker', $userCheckerId); |
| 24 |
|
} |
| 25 |
|
} |
| 26 |
|
|