protected function AbstractNormalizer::formatAttribute in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/serializer/Normalizer/AbstractNormalizer.php \Symfony\Component\Serializer\Normalizer\AbstractNormalizer::formatAttribute()
Format an attribute name, for example to convert a snake_case name to camelCase.
Parameters
string $attributeName:
Return value
string
Deprecated
Deprecated since version 2.7, to be removed in 3.0. Use Symfony\Component\Serializer\NameConverter\CamelCaseToSnakeCaseNameConverter instead.
File
- vendor/
symfony/ serializer/ Normalizer/ AbstractNormalizer.php, line 233
Class
- AbstractNormalizer
- Normalizer implementation.
Namespace
Symfony\Component\Serializer\NormalizerCode
protected function formatAttribute($attributeName) {
@trigger_error(sprintf('%s is deprecated since version 2.7 and will be removed in 3.0. Use Symfony\\Component\\Serializer\\NameConverter\\CamelCaseToSnakeCaseNameConverter instead.', __METHOD__), E_USER_DEPRECATED);
return $this->nameConverter ? $this->nameConverter
->normalize($attributeName) : $attributeName;
}