浏览代码

Merge branch 'develop'

master
Guillaume Bourgeois 1年前
父节点
当前提交
6f469ad742
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. +4
    -1
      Resolver/UrlResolver.php

+ 4
- 1
Resolver/UrlResolver.php 查看文件

@@ -73,10 +73,13 @@ class UrlResolver

public function getRouteCurrentRequest(): ?string
{
if(!$this->requestStack->getCurrentRequest()) {
return null;
}

$requestAttributes = $this->requestStack->getCurrentRequest()->attributes->all();
$route = isset($requestAttributes['_route']) ? $requestAttributes['_route'] : null;

return $route;
}

}

正在加载...
取消
保存