AppserverIo\Appserver\ServletEngine\ServletEngine::init PHP Метод

init() публичный Метод

Initializes the module.
public init ( AppserverIo\Server\Interfaces\ServerContextInterface $serverContext ) : void
$serverContext AppserverIo\Server\Interfaces\ServerContextInterface The servers context instance
Результат void
    public function init(ServerContextInterface $serverContext)
    {
        try {
            // set the servlet context
            $this->serverContext = $serverContext;
            // initialize the servlet engine
            $this->initValves();
            $this->initHandlers();
            $this->initApplications();
        } catch (\Exception $e) {
            throw new ModuleException($e);
        }
    }