src/Module.php
public function init()
    {
        $this->container = $this->initContainer();

        if ($this->container->has(ServerRequestInterface::class)) {
            $this->baseRequest = $this->container->get(ServerRequestInterface::class);
        }
        
        if ($this->container->has(ResponseInterface::class)) {
            $this->baseResponse = $this->container->get(ResponseInterface::class);
        }
    }
public function init()
    {
        $this->container = $this->initContainer();

        if ($this->container->has(ServerRequestInterface::class)) {
            $this->baseRequest = $this->container->get(ServerRequestInterface::class);
        }
        
        if ($this->container->has(ResponseInterface::class)) {
            $this->baseResponse = $this->container->get(ResponseInterface::class);
        }
    }
public function init ( ) { $ this -> container = $ this -> initContainer ( ) ; if ( $ this -> container -> has ( ServerRequestInterface :: class ) ) { $ this -> baseRequest = $ this -> container -> get ( ServerRequestInterface :: class ) ; } if ( $ this -> container -> has ( ResponseInterface :: class ) ) { $ this -> baseResponse = $ this -> container -> get ( ResponseInterface :: class ) ; } }
Initialize the module
Initialize the module