Exemplo n.º 1
0
 /**
  * @param HttpKernelInterface $app the next app
  * @param string $webroot the root-folder from which files are served
  * @param string $defaultMimetype the mime type for non-guessable file mimes (default: 'application/octed-stream')
  * @param array $excludeExt array of file extension that are ignored (default: ['php'])
  * @param bool $ignoreNotFound if true requests to non existing ressources will be passed
  *                             to the next app in stack. (default: true)
  */
 public function __construct(HttpKernelInterface $app, $webroot, $defaultMimetype = 'application/octed-stream', array $excludeExt = ['php'], $ignoreNotFound = true)
 {
     parent::__construct($webroot, $defaultMimetype, $excludeExt);
     $this->app = $app;
     $this->ignoreNotFound = $ignoreNotFound;
 }