src/Event/ElFinderPreExecutionEvent.php
public function subRequest(array $path, array $query)
    {
        $path['_controller'] = 'FMElfinderBundle:ElFinder:load';
        $subRequest          = $this->request->duplicate($query, null, $path);

        return $this->httpKernel->handle($subRequest, HttpKernelInterface::SUB_REQUEST);
    }
public function subRequest(array $path, array $query)
    {
        $path['_controller'] = 'FMElfinderBundle:ElFinder:load';
        $subRequest          = $this->request->duplicate($query, null, $path);

        return $this->httpKernel->handle($subRequest, HttpKernelInterface::SUB_REQUEST);
    }
public function subRequest ( array $ path , array $ query ) { $ path [ '_controller' ] = 'FMElfinderBundle:ElFinder:load' ; $ subRequest = $ this -> request -> duplicate ( $ query , null , $ path ) ; return $ this -> httpKernel -> handle ( $ subRequest , HttpKernelInterface :: SUB_REQUEST ) ; }
Makes a sub request to elFinder.
Function based on 'forward' function from Symfony controllers.

@see https://github.com/symfony/symfony/blob/2.5/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php

@param array $path  An array of path parameters
@param array $query An array of query parameters

@return Symfony\Component\HttpFoundation\Response A Response instance
Makes a sub request to elFinder . Function based on forward function from Symfony controllers .