protected $nameConverter;
/**
* Sets the {@link ClassMetadataFactoryInterface} to use.
*/
public function __construct(ClassMetadataFactoryInterface
$classMetadataFactory = null, NameConverterInterface
$nameConverter = null, array
$defaultContext =
[]) { $this->classMetadataFactory =
$classMetadataFactory;
$this->nameConverter =
$nameConverter;
$this->defaultContext =
array_merge($this->defaultContext,
$defaultContext);
$this->
validateCallbackContext($this->defaultContext, 'default'
);
if (isset($this->defaultContext
[self::CIRCULAR_REFERENCE_HANDLER
]) && !\
is_callable($this->defaultContext
[self::CIRCULAR_REFERENCE_HANDLER
])) { throw new InvalidArgumentException(sprintf('Invalid callback found in the "%s" default context option.', self::CIRCULAR_REFERENCE_HANDLER
));
} } /**
* @deprecated since Symfony 6.3, use "getSupportedTypes()" instead
*/
public function hasCacheableSupportsMethod(): bool
{