public static function create(Application $app)
    {
        $conf = $app['conf']->get('xsendfile');

        $mapping = [];

        if (isset($conf['mapping'])) {
            $mapping = $conf['mapping'];
        }

        return new self($app['monolog'], $conf['enabled'], $conf['type'], $mapping);
    }
public static function create(Application $app)
    {
        $conf = $app['conf']->get('xsendfile');

        $mapping = [];

        if (isset($conf['mapping'])) {
            $mapping = $conf['mapping'];
        }

        return new self($app['monolog'], $conf['enabled'], $conf['type'], $mapping);
    }
public static function create ( Application $ app ) { $ conf = $ app [ 'conf' ] -> get ( 'xsendfile' ) ; $ mapping = [ ] ; if ( isset ( $ conf [ 'mapping' ] ) ) { $ mapping = $ conf [ 'mapping' ] ; } return new self ( $ app [ 'monolog' ] , $ conf [ 'enabled' ] , $ conf [ 'type' ] , $ mapping ) ; }
Creates a new instance of XSendFile Factory according to the application
configuration.

@param  Application      $app
@return XSendFileFactory
Creates a new instance of XSendFile Factory according to the application configuration .