Skip to content

Commit

Permalink
Fixed typo in UPGRADE-2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterj committed Mar 6, 2013
1 parent d0022e3 commit ac0c4ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions UPGRADE-2.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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
Expand Down

0 comments on commit ac0c4ce

Please sign in to comment.