Skip to content

Commit

Permalink
bug #3549 Fixed createPropertyAccessorBuilder usage (antonbabenko)
Browse files Browse the repository at this point in the history
This PR was submitted for the 2.4 branch but it was merged into the 2.3 branch instead (closes #3549).

Discussion
----------

Fixed createPropertyAccessorBuilder usage

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.3+

Commits
-------

d36cf2c Fixed createPropertyAccessorBuilder usage
  • Loading branch information
weaverryan committed Feb 16, 2014
2 parents f6dd678 + 934c0bb commit 384538b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/property_access/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ configured to enable extra features. To do that you could use the
:class:`Symfony\\Component\\PropertyAccess\\PropertyAccessorBuilder`::

// ...
$accessorBuilder = PropertyAccess::getPropertyAccessorBuilder();
$accessorBuilder = PropertyAccess::createPropertyAccessorBuilder();

// Enable magic __call
$accessorBuilder->enableMagicCall();
Expand All @@ -365,7 +365,7 @@ configured to enable extra features. To do that you could use the
$accessor = $accessorBuilder->getPropertyAccessor();

// Or all in one
$accessor = PropertyAccess::getPropertyAccessorBuilder()
$accessor = PropertyAccess::createPropertyAccessorBuilder()
->enableMagicCall()
->getPropertyAccessor();

Expand Down

0 comments on commit 384538b

Please sign in to comment.