Skip to content

Commit

Permalink
Merge pull request #73 from Ocramius/hotfix/generated-hydrator-removal
Browse files Browse the repository at this point in the history
Generated hydrator removal
  • Loading branch information
Ocramius committed Aug 5, 2013
2 parents 4358ac2 + 51cab2a commit 1ac78a8
Show file tree
Hide file tree
Showing 30 changed files with 7 additions and 2,062 deletions.
22 changes: 0 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,28 +135,6 @@ There's various possible remote proxy implementations, which could be based on x

This feature [yet to be planned](https://github.com/Ocramius/ProxyManager/issues/7).

## Hydrator

A [hydrator](http://framework.zend.com/manual/2.1/en/modules/zend.stdlib.hydrator.html) is an object that can read
other object's data or fill them with values. ProxyManager can generate highly optimized hydrator objects to speed up
batch processing of instantiation of a large number of objects.

```php
$config = new \ProxyManager\Configuration();
$factory = new \ProxyManager\Factory\HydratorFactory($config);

$hydrator = $factory->createProxy('My\Entity');

$object = new My\Entity();

// following will be VERY fast!
$hydrator->hydrate(array('foo' => 'bar'), $object);
var_dump($hydrator->extract($object)); // array('foo' => 'bar')
```

See the [complete documentation about generated hydrators](https://github.com/Ocramius/ProxyManager/tree/master/docs/generated-hydrator.md)
in the `docs/` directory.

## Contributing

Please read the [CONTRIBUTING.md](https://github.com/Ocramius/ProxyManager/blob/master/CONTRIBUTING.md) contents if you
Expand Down
5 changes: 5 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
This is a list of backwards compatibility (BC) breaks introduced in ProxyManager:

# 0.5.0

* The Generated Hydrator has been removed - it is now available as a separate project
at [Ocramius/GeneratedHydrator](https://github.com/Ocramius/GeneratedHydrator) [#65](https://github.com/Ocramius/ProxyManager/pull/65)

# 0.4.0

* An optional parameter `$options` was introduced
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
"phpunit/phpunit": ">=3.7",
"phpmd/phpmd": "1.4.*",
"squizlabs/php_codesniffer": "1.4.*",
"zendframework/zend-stdlib": "2.*",
"satooshi/php-coveralls": "~0.6"
},
"suggest": {
"zendframework/zend-stdlib": "To use the hydrator proxy"
"zendframework/zend-stdlib": "To use the hydrator proxy",
"ocramius/generated-hydrator": "To have very fast object to array to object conversion for ghost objects"
},
"autoload": {
"psr-0": {
Expand Down
121 changes: 0 additions & 121 deletions docs/generated-hydrator.md

This file was deleted.

31 changes: 0 additions & 31 deletions examples/hydrator.php

This file was deleted.

66 changes: 0 additions & 66 deletions src/ProxyManager/Factory/HydratorFactory.php

This file was deleted.

45 changes: 0 additions & 45 deletions src/ProxyManager/Proxy/HydratorInterface.php

This file was deleted.

This file was deleted.

Loading

0 comments on commit 1ac78a8

Please sign in to comment.