Skip to content

Commit

Permalink
Fixed createPropertyAccessorBuilder usage
Browse files Browse the repository at this point in the history
  • Loading branch information
antonbabenko committed Feb 6, 2014
1 parent c483ac6 commit d36cf2c
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 d36cf2c

Please sign in to comment.