Fixed typo in UPGRADE-2.2

This commit is contained in:
Wouter J 2013-03-06 17:58:18 +01:00
parent d0022e31d7
commit ac0c4ceeb3
1 changed files with 4 additions and 4 deletions

View File

@ -202,10 +202,10 @@
```
use Symfony\Component\PropertyAccess\PropertyAccess;
$accessor = PropertyAccess::getPropertyAccessor();
$propertyAccessor = PropertyAccess::getPropertyAccessor();
$value = $propertyAccessor->getValue($object, 'some.path');
$accessor->setValue($object, 'some.path', 'new value');
$propertyAccessor->setValue($object, 'some.path', 'new value');
```
After (alternative 2):
@ -214,11 +214,11 @@
use Symfony\Component\PropertyAccess\PropertyAccess;
use Symfony\Component\PropertyAccess\PropertyPath;
$accessor = PropertyAccess::getPropertyAccessor();
$propertyAccessor = PropertyAccess::getPropertyAccessor();
$propertyPath = new PropertyPath('some.path');
$value = $propertyAccessor->getValue($object, $propertyPath);
$accessor->setValue($object, $propertyPath, 'new value');
$propertyAccessor->setValue($object, $propertyPath, 'new value');
```
### Routing