Pārlūkot izejas kodu

Merge branch 'develop'

master
Fabien Normand pirms 3 dienas
vecāks
revīzija
9c469074da
1 mainītis faili ar 7 papildinājumiem un 2 dzēšanām
  1. +7
    -2
      Resolver/SectionResolver.php

+ 7
- 2
Resolver/SectionResolver.php Parādīt failu

@@ -49,7 +49,12 @@ class SectionResolver

public function getCurrent($returnDefaultIfOutOfSections = false, $returnVisitedIfOutOfSection = false, $throwExceptionIfSectionNotFound = true)
{
$requestAttributesArray = $this->requestStack->getMainRequest()->attributes->all();
$requestAttributesArray = [];

$request = $this->requestStack->getMainRequest();
if($request) {
$requestAttributesArray = $request->attributes->all();
}

// admin
if (isset($requestAttributesArray['_firewall_context']) && $requestAttributesArray['_firewall_context'] == 'security.firewall.map.context.admin') {
@@ -143,4 +148,4 @@ class SectionResolver
}


}
}

Notiek ielāde…
Atcelt
Saglabāt