Notice: Undefined variable: namespace in /var/www/legtux.org/users/weboconsulting/www/vendor/symfony/maker-bundle/src/Resources/skeleton/serializer/Normalizer.tpl.php on line 3
;
Notice: Undefined variable: use_statements in /var/www/legtux.org/users/weboconsulting/www/vendor/symfony/maker-bundle/src/Resources/skeleton/serializer/Normalizer.tpl.php on line 5
class
Notice: Undefined variable: class_name in /var/www/legtux.org/users/weboconsulting/www/vendor/symfony/maker-bundle/src/Resources/skeleton/serializer/Normalizer.tpl.php on line 7
implements NormalizerInterface, CacheableSupportsMethodInterface
{
private $normalizer;
public function __construct(ObjectNormalizer $normalizer)
{
$this->normalizer = $normalizer;
}
public function normalize($object, string $format = null, array $context = []): array
{
$data = $this->normalizer->normalize($object, $format, $context);
// TODO: add, edit, or delete some data
return $data;
}
public function supportsNormalization($data, string $format = null, array $context = []): bool
{
return $data instanceof \App\Entity\
Notice: Undefined variable: class_name in /var/www/legtux.org/users/weboconsulting/www/vendor/symfony/maker-bundle/src/Resources/skeleton/serializer/Normalizer.tpl.php on line 27
;
}
public function hasCacheableSupportsMethod(): bool
{
return true;
}
}