Webiny\Component\Rest\Response\Router::__construct PHP Method

__construct() public method

Base constructor.
public __construct ( string $api, string $class, boolean $normalize, Cache $compilerCache )
$api string Name of the rest api configuration.
$class string Name of the rest api class.
$normalize boolean Should the url parts be normalized or not.
$compilerCache Webiny\Component\Rest\Compiler\Cache Current compiler cache instance.
    public function __construct($api, $class, $normalize, CompilerCache $compilerCache)
    {
        $this->api = $api;
        $this->class = $class;
        $this->normalize = $normalize;
        $this->compilerCache = $compilerCache;
    }