/** * Constructor. * * {@inheritdoc} */ public function __construct($pattern, $uriPattern = '/**/*') { parent::__construct($pattern, $uriPattern); $this->pipe(Middleware::basePath(Glob::getBasePath($this->uriPattern))); $this->endPoint(Middleware::readResponse(Glob::getBasePath($this->pattern))); }