|
|
@@ -16,8 +16,8 @@ use Symfony\Component\HttpKernel\KernelEvents;
|
|
|
class OnKernelRequestPreRead implements EventSubscriberInterface
|
|
|
{
|
|
|
public function __construct(
|
|
|
- private RequestStack $requestStack,
|
|
|
- private Security $security,
|
|
|
+ private RequestStack $requestStack,
|
|
|
+ private Security $security,
|
|
|
private FiltersConfigurationService $filtersConfigurationService,
|
|
|
private readonly ObjectUtils $objectUtils
|
|
|
) {
|
|
|
@@ -52,7 +52,7 @@ class OnKernelRequestPreRead implements EventSubscriberInterface
|
|
|
}
|
|
|
|
|
|
$profileHash = $event->getRequest()->headers->get('profileHash');
|
|
|
- if ($profileHash !== null) {
|
|
|
+ if (null !== $profileHash) {
|
|
|
$profileMask = [
|
|
|
'activityYear' => $access->getActivityYear(),
|
|
|
'historical' => $access->getHistorical(),
|