Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

CompoundMatcherNormalizer.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Publish\Core\MVC\Symfony\Component\Serializer;
8
9 use eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher;
10
11 class CompoundMatcherNormalizer extends AbstractPropertyWhitelistNormalizer
12 {
16 public function normalize($object, $format = null, array $context = [])
17 {
18 $data = parent::normalize($object, $format, $context);
19 $data['config'] = [];
20 $data['matchersMap'] = [];
21
22 return $data;
23 }
24
25 protected function getAllowedProperties()
26 {
27 return ['subMatchers'];
28 }
29
30 public function supportsNormalization($data, $format = null)
31 {
32 return $data instanceof Matcher\Compound;
33 }
34 }
eZ\Publish\Core\MVC\Symfony\Component\Serializer\AbstractPropertyWhitelistNormalizer
Definition: AbstractPropertyWhitelistNormalizer.php:12
eZ\Publish\Core\MVC\Symfony\Component\Serializer\CompoundMatcherNormalizer
Definition: CompoundMatcherNormalizer.php:12
eZ\Publish\Core\MVC\Symfony\Component\Serializer\CompoundMatcherNormalizer\supportsNormalization
supportsNormalization($data, $format=null)
Definition: CompoundMatcherNormalizer.php:30
eZ\Publish\Core\MVC\Symfony\Component\Serializer\CompoundMatcherNormalizer\normalize
normalize($object, $format=null, array $context=[])
Definition: CompoundMatcherNormalizer.php:16
eZ\Publish\Core\MVC\Symfony\Component\Serializer\CompoundMatcherNormalizer\getAllowedProperties
getAllowedProperties()
Definition: CompoundMatcherNormalizer.php:25
eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher
Interface for SiteAccess matchers.
Definition: Publish/Core/MVC/Symfony/SiteAccess/Matcher.php:15
eZ\Publish\Core\MVC\Symfony\Component\Serializer
Definition: AbstractPropertyWhitelistNormalizer.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.