You are here

public function AbstractNormalizer::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/serializer/Normalizer/AbstractNormalizer.php \Symfony\Component\Serializer\Normalizer\AbstractNormalizer::__construct()

Sets the {@link ClassMetadataFactoryInterface} to use.

Parameters

ClassMetadataFactoryInterface|null $classMetadataFactory:

NameConverterInterface|null $nameConverter:

1 call to AbstractNormalizer::__construct()
ObjectNormalizer::__construct in vendor/symfony/serializer/Normalizer/ObjectNormalizer.php
Sets the {@link ClassMetadataFactoryInterface} to use.
1 method overrides AbstractNormalizer::__construct()
ObjectNormalizer::__construct in vendor/symfony/serializer/Normalizer/ObjectNormalizer.php
Sets the {@link ClassMetadataFactoryInterface} to use.

File

vendor/symfony/serializer/Normalizer/AbstractNormalizer.php, line 65

Class

AbstractNormalizer
Normalizer implementation.

Namespace

Symfony\Component\Serializer\Normalizer

Code

public function __construct(ClassMetadataFactoryInterface $classMetadataFactory = null, NameConverterInterface $nameConverter = null) {
  $this->classMetadataFactory = $classMetadataFactory;
  $this->nameConverter = $nameConverter;
}