src/Framework/Application.php
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
    {
        if (!$this->booted) {
            $this->boot();
        }

        $current = HttpKernelInterface::SUB_REQUEST === $type ? $this['request'] : $this['request_error'];

        $this['request'] = $request;

        $request->attributes->add($this['matcher']->match($request->getPathInfo()));

        $response =  $this['kernel']->handle($request, $type, $catch);

        $this['request'] = $current;

        return $response;
    }
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
    {
        if (!$this->booted) {
            $this->boot();
        }

        $current = HttpKernelInterface::SUB_REQUEST === $type ? $this['request'] : $this['request_error'];

        $this['request'] = $request;

        $request->attributes->add($this['matcher']->match($request->getPathInfo()));

        $response =  $this['kernel']->handle($request, $type, $catch);

        $this['request'] = $current;

        return $response;
    }
public function handle ( Request $ request , $ type = HttpKernelInterface :: MASTER_REQUEST , $ catch = true ) { if ( ! $ this -> booted ) { $ this -> boot ( ) ; } $ current = HttpKernelInterface :: SUB_REQUEST === $ type ? $ this [ 'request' ] : $ this [ 'request_error' ] ; $ this [ 'request' ] = $ request ; $ request -> attributes -> add ( $ this [ 'matcher' ] -> match ( $ request -> getPathInfo ( ) ) ) ; $ response = $ this [ 'kernel' ] -> handle ( $ request , $ type , $ catch ) ; $ this [ 'request' ] = $ current ; return $ response ; }
{@inheritdoc}
{