code: protected function createLogoutHandler($container, $id, $config)
      {
          //Logout listener
          if($container->hasDefinition('security.logout_listener.'.$id)) {
              $logoutListener = $container->getDefinition('security.logout_listener.'.$id);
              $samlListenerId = 'security.logout.handler.saml';
  
              //Add logout handler
              $container
                  ->setDefinition($samlListenerId, new DefinitionDecorator('saml.security.http.logout'))
                  ->replaceArgument(2, array_intersect_key($config, $this->options));
              $logoutListener->addMethodCall('addHandler', array(new Reference($samlListenerId)));
          }
      }
docs: /*protected function createEntryPoint($container, $id, $config, $defaultEntryPointId)
  {
  $entryPointId = 'saml.security.authentication.entry_point.'.$id;
  $container
  ->setDefinition($entryPointId, new DefinitionDecorator('saml.security.authentication.entry_point'))
  ->replaceArgument(2, $config)
  ;
  
  set options to container for use by other classes
  $container->setParameter('saml.options.'.$id, $config);
  
  return $entryPointId;
  }