Use new request stack. Addresses #9.

This commit is contained in:
Rosie Le Faive 2023-01-26 10:14:40 -04:00
parent 4d3a4df647
commit f2e21f3a1a
4 changed files with 4 additions and 5 deletions

View file

@ -11,7 +11,6 @@ use Drupal\Core\Render\RendererInterface;
use Drupal\Core\Routing\CurrentRouteMatch;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\Routing\RouterInterface;
@ -136,7 +135,7 @@ class AjaxBlocksController extends ControllerBase {
}
$new_request = Request::create($path);
$request_stack = new RequestStack();
$request_stack = \Drupal::requestStack();
$processed = $this->pathProcessor->processInbound($new_request->getPathInfo(), $new_request);
$this->currentPath->setPath($processed);