diff --git a/components/property_access/introduction.rst b/components/property_access/introduction.rst index f4d4de5cb23..50532e20ea3 100644 --- a/components/property_access/introduction.rst +++ b/components/property_access/introduction.rst @@ -24,14 +24,18 @@ Usage ----- The entry point of this component is the -:method:`PropertyAccess::getPropertyAccessor` +:method:`PropertyAccess::createPropertyAccessor` factory. This factory will create a new instance of the :class:`Symfony\\Component\\PropertyAccess\\PropertyAccessor` class with the default configuration:: use Symfony\Component\PropertyAccess\PropertyAccess; - $accessor = PropertyAccess::getPropertyAccessor(); + $accessor = PropertyAccess::createPropertyAccessor(); + +.. versionadded:: 2.3 + Before Symfony 2.3, the :method:`Symfony\\Component\\PropertyAccess\\PropertyAccess::createPropertyAccessor` + was called ``getPropertyAccessor()``. Reading from Arrays -------------------