Skip to content

Commit 0c53c5e

Browse files
committed
Renamed PropertyAccess::getPropertyAccessor to createPropertyAccessor
1 parent 48e7ded commit 0c53c5e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

components/property_access/introduction.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,18 @@ Usage
2424
-----
2525

2626
The entry point of this component is the
27-
:method:`PropertyAccess::getPropertyAccessor<Symfony\\Component\\PropertyAccess\\PropertyAccess::getPropertyAccessor>`
27+
:method:`PropertyAccess::createPropertyAccessor<Symfony\\Component\\PropertyAccess\\PropertyAccess::createPropertyAccessor>`
2828
factory. This factory will create a new instance of the
2929
:class:`Symfony\\Component\\PropertyAccess\\PropertyAccessor` class with the
3030
default configuration::
3131

3232
use Symfony\Component\PropertyAccess\PropertyAccess;
3333

34-
$accessor = PropertyAccess::getPropertyAccessor();
34+
$accessor = PropertyAccess::createPropertyAccessor();
35+
36+
.. versionadded:: 2.3
37+
Before Symfony 2.3, the :method:`Symfony\\Component\\PropertyAccess\\PropertyAccess::createPropertyAccessor`
38+
was called ``getPropertyAccessor()``.
3539

3640
Reading from Arrays
3741
-------------------

0 commit comments

Comments
 (0)