Phprest\Router\StrategyTest::setRequestParameters PHP Method

setRequestParameters() protected method

protected setRequestParameters ( string $vendor, string | integer $apiVersion, string $acceptHeader )
$vendor string
$apiVersion string | integer
$acceptHeader string
    protected function setRequestParameters($vendor, $apiVersion, $acceptHeader)
    {
        $this->container->add(Application::CONTAINER_ID_VENDOR, $vendor);
        $this->container->add(Application::CONTAINER_ID_API_VERSION, $apiVersion);
        (new Service\Hateoas\Service())->register($this->container, new Service\Hateoas\Config(true));
        $request = new Request();
        $request->headers->set('Accept', $acceptHeader, true);
        $this->container->add('Symfony\\Component\\HttpFoundation\\Request', $request);
    }