From d36cf2c0efe52513ed38f55ab462c261694c5f4b Mon Sep 17 00:00:00 2001 From: Anton Babenko Date: Thu, 6 Feb 2014 21:56:51 +0100 Subject: [PATCH] Fixed createPropertyAccessorBuilder usage --- components/property_access/introduction.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/property_access/introduction.rst b/components/property_access/introduction.rst index bc9e6d14cb3..1498c925016 100644 --- a/components/property_access/introduction.rst +++ b/components/property_access/introduction.rst @@ -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(); @@ -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();