public function getRoute()
    {
        /** @var Http $req */
        $req = $this->context->getRequest();
        if (isset($this->map[$req->getControllerName()])) {
            return $this->map[$req->getControllerName()];
        }

        return $this->map[Generic::CONTROLLER_KEY];
    }
public function getRoute()
    {
        /** @var Http $req */
        $req = $this->context->getRequest();
        if (isset($this->map[$req->getControllerName()])) {
            return $this->map[$req->getControllerName()];
        }

        return $this->map[Generic::CONTROLLER_KEY];
    }
public function getRoute ( ) { /** @var Http $req */ $ req = $ this -> context -> getRequest ( ) ; if ( isset ( $ this -> map [ $ req -> getControllerName ( ) ] ) ) { return $ this -> map [ $ req -> getControllerName ( ) ] ; } return $ this -> map [ Generic :: CONTROLLER_KEY ] ; }
Retrieves the correct route based on
the current controller

@return TypeInterface
Retrieves the correct route based on the current controller