public function init(ServerContextInterface $serverContext)
    {

        // initialize the server context
        $this->serverContext = $serverContext;

        // initialize the profile logger
        if ($serverContext->hasLogger(LoggerUtils::PROFILE)) {
            $this->profileLogger = $serverContext->getLogger(LoggerUtils::PROFILE);
        }
    }
public function init(ServerContextInterface $serverContext)
    {

        // initialize the server context
        $this->serverContext = $serverContext;

        // initialize the profile logger
        if ($serverContext->hasLogger(LoggerUtils::PROFILE)) {
            $this->profileLogger = $serverContext->getLogger(LoggerUtils::PROFILE);
        }
    }
public function init ( ServerContextInterface $ serverContext ) { // initialize the server context $ this -> serverContext = $ serverContext ; // initialize the profile logger if ( $ serverContext -> hasLogger ( LoggerUtils :: PROFILE ) ) { $ this -> profileLogger = $ serverContext -> getLogger ( LoggerUtils :: PROFILE ) ; } }
Initiates the module

@param \AppserverIo\Server\Interfaces\ServerContextInterface $serverContext The server's context instance

@return bool
@throws \AppserverIo\Server\Exceptions\ModuleException
Initiates the module