Skip to content

Commit 2fe611b

Browse files
committed
Merge pull request symfony#2558 from bschussek/issue7854
[WCM] Renamed PropertyAccess::getPropertyAccessor to createPropertyAccessor
2 parents 0f745f4 + 0c53c5e commit 2fe611b

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)