AppserverIo\Appserver\ServletEngine\Security\StandardAuthenticationManagerFactory::visit PHP Method

visit() public static method

The main method that creates new instances in a separate context.
public static visit ( AppserverIo\Psr\Application\ApplicationInterface $application, AppserverIo\Appserver\Core\Api\Node\ManagerNodeInterface $managerConfiguration ) : void
$application AppserverIo\Psr\Application\ApplicationInterface The application instance to register the class loader with
$managerConfiguration AppserverIo\Appserver\Core\Api\Node\ManagerNodeInterface The manager configuration
return void
    public static function visit(ApplicationInterface $application, ManagerNodeInterface $managerConfiguration)
    {
        // initialize the storage instances
        $authenticators = new StackableStorage();
        $mappings = new StackableStorage();
        // initialize the authentication manager
        $authenticationManager = new StandardAuthenticationManager();
        $authenticationManager->injectMappings($mappings);
        $authenticationManager->injectApplication($application);
        $authenticationManager->injectAuthenticators($authenticators);
        $authenticationManager->injectManagerConfiguration($managerConfiguration);
        // attach the instance
        $application->addManager($authenticationManager, $managerConfiguration);
    }
StandardAuthenticationManagerFactory