use OAuth2Framework\Component\OpenIdConnect\UserInfoEndpoint\UserInfoEndpoint;
17
use OAuth2Framework\ServerBundle\Service\MetadataBuilder;
18
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
19
use Symfony\Component\DependencyInjection\ContainerBuilder;
20
use Symfony\Component\DependencyInjection\Reference;
21
22
class UserinfoEndpointEncryptionCompilerPass implements CompilerPassInterface
23
{
24
public function process(ContainerBuilder $container): void
25
{
26
if (!$container->hasDefinition(UserInfoEndpoint::class) || !$container->hasDefinition('jose.jwe_builder.oauth2_server.openid_connect.id_token_from_userinfo')) {