public function init(ServletConfigInterface $servletConfig)
    {

        // pre-initialize the X-POWERED-BY header
        $this->poweredBy = get_class($this);

        // pre-initialize the possible DHTML template paths
        $this->webappPath = $servletConfig->getWebappPath();
        $this->appBase = $servletConfig->getServletContext()->getAppBase();
        $this->baseDirectory = $servletConfig->getServletContext()->getBaseDirectory();
    }
public function init(ServletConfigInterface $servletConfig)
    {

        // pre-initialize the X-POWERED-BY header
        $this->poweredBy = get_class($this);

        // pre-initialize the possible DHTML template paths
        $this->webappPath = $servletConfig->getWebappPath();
        $this->appBase = $servletConfig->getServletContext()->getAppBase();
        $this->baseDirectory = $servletConfig->getServletContext()->getBaseDirectory();
    }
public function init ( ServletConfigInterface $ servletConfig ) { // pre-initialize the X-POWERED-BY header $ this -> poweredBy = get_class ( $ this ) ; // pre-initialize the possible DHTML template paths $ this -> webappPath = $ servletConfig -> getWebappPath ( ) ; $ this -> appBase = $ servletConfig -> getServletContext ( ) -> getAppBase ( ) ; $ this -> baseDirectory = $ servletConfig -> getServletContext ( ) -> getBaseDirectory ( ) ; }
Initializes the servlet with the passed configuration.

@param \AppserverIo\Psr\Servlet\ServletConfigInterface $servletConfig The configuration to initialize the servlet with

@return void
Initializes the servlet with the passed configuration .