You are here

public function PsrHttpFactory::createDiactorosFactory in Views OAI-PMH 8

File

src/Service/PsrHttpFactory.php, line 17

Class

PsrHttpFactory

Namespace

Drupal\views_oai_pmh\Service

Code

public function createDiactorosFactory(RequestStack $stack) {
  $psr17Factory = new Psr17Factory();
  $request = new PsrHttpFactorySymfony($psr17Factory, $psr17Factory, $psr17Factory, $psr17Factory);
  return $request
    ->createRequest($stack
    ->getCurrentRequest());
}