for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @copyright Copyright (C) eZ Systems AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/
declare(strict_types=1);
namespace eZ\Publish\Core\MVC\Symfony\Component\Serializer;
use eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher\Regex;
final class RegexNormalizer extends AbstractPropertyWhitelistNormalizer
{
public function supportsNormalization($data, $format = null)
return $data instanceof Regex;
}
* @see \eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher\Regex::__sleep
protected function getAllowedProperties(): array
return ['regex', 'itemNumber', 'matchedSiteAccess'];