Creates a new singleton application server instance.
public static singleton ( AppserverIo\Psr\Naming\NamingDirectoryInterface $namingDirectory, AppserverIo\Storage\GenericStackable $runlevels ) : AppserverIo\Appserver\Core\Interfaces\ApplicationServerInterface | ||
$namingDirectory | AppserverIo\Psr\Naming\NamingDirectoryInterface | |
$runlevels | AppserverIo\Storage\GenericStackable | The storage for the services |
return | AppserverIo\Appserver\Core\Interfaces\ApplicationServerInterface | The singleton application instance |