AppserverIo\Appserver\DependencyInjectionContainer\ProviderFactory::visit PHP Метод

visit() публичный статический Метод

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
Результат void
    public static function visit(ApplicationInterface $application, ManagerNodeInterface $managerConfiguration)
    {
        // create the storage for the reflection classes and the application specific aliases
        $reflectionClasses = new GenericStackable();
        $namingDirectoryAliases = new GenericStackable();
        // create and initialize the DI provider instance
        $provider = new Provider();
        $provider->injectApplication($application);
        $provider->injectReflectionClasses($reflectionClasses);
        $provider->injectNamingDirectoryAliases($namingDirectoryAliases);
        // attach the instance
        $application->addManager($provider, $managerConfiguration);
    }
ProviderFactory