src/Http/HttpIntegration.php
public function define(ContainerInterface $container, Configuration $config)
    {
        list($server, $cookies, $get, $files, $post) = $this->globals($config);

        $headers = (array) $this->headers($server);

        $request = new ServerRequest($server, $cookies, $get, $files, $post);

        foreach ($headers as $key => $value) {
            $request = $request->withHeader($key, $value);
        }

        return $this->resolve($container, $request, new Response);
    }
public function define(ContainerInterface $container, Configuration $config)
    {
        list($server, $cookies, $get, $files, $post) = $this->globals($config);

        $headers = (array) $this->headers($server);

        $request = new ServerRequest($server, $cookies, $get, $files, $post);

        foreach ($headers as $key => $value) {
            $request = $request->withHeader($key, $value);
        }

        return $this->resolve($container, $request, new Response);
    }
public function define ( ContainerInterface $ container , Configuration $ config ) { list ( $ server , $ cookies , $ get , $ files , $ post ) = $ this -> globals ( $ config ) ; $ headers = ( array ) $ this -> headers ( $ server ) ; $ request = new ServerRequest ( $ server , $ cookies , $ get , $ files , $ post ) ; foreach ( $ headers as $ key => $ value ) { $ request = $ request -> withHeader ( $ key , $ value ) ; } return $ this -> resolve ( $ container , $ request , new Response ) ; }
Defines the specified integration.

@param  \Rougin\Slytherin\Container\ContainerInterface $container
@param  \Rougin\Slytherin\Integration\Configuration    $config
@return \Rougin\Slytherin\Container\ContainerInterface
Defines the specified integration .