Warning: Undefined variable $namespace in C:\laragon\www\sfentreprise\vendor\symfony\maker-bundle\src\Resources\skeleton\serializer\Normalizer.tpl.php on line 3
;
Warning: Undefined variable $use_statements in C:\laragon\www\sfentreprise\vendor\symfony\maker-bundle\src\Resources\skeleton\serializer\Normalizer.tpl.php on line 5
class
Warning: Undefined variable $class_name in C:\laragon\www\sfentreprise\vendor\symfony\maker-bundle\src\Resources\skeleton\serializer\Normalizer.tpl.php on line 7
implements NormalizerInterface, CacheableSupportsMethodInterface
{
public function __construct(private ObjectNormalizer $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\
Warning: Undefined variable $class_name in C:\laragon\www\sfentreprise\vendor\symfony\maker-bundle\src\Resources\skeleton\serializer\Normalizer.tpl.php on line 24
Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\laragon\www\sfentreprise\vendor\symfony\maker-bundle\src\Resources\skeleton\serializer\Normalizer.tpl.php on line 24
;
}
public function hasCacheableSupportsMethod(): bool
{
return true;
}
}