[ Index ] |
PHP Cross Reference of phpBB-3.2.11-deutsch |
[Summary view] [Print] [Text view]
1 This is a list of backwards compatibility (BC) breaks introduced in ProxyManager: 2 3 # 0.5.0 4 5 * The Generated Hydrator has been removed - it is now available as a separate project 6 at [Ocramius/GeneratedHydrator](https://github.com/Ocramius/GeneratedHydrator) [#65](https://github.com/Ocramius/ProxyManager/pull/65) 7 * When having a `public function __get($name)` defined (by-val) and public properties, it won't be possible to get public 8 properties by-ref while initializing the object. Either drop `__get()` or implement 9 a by-ref `& __get()` [#126](https://github.com/Ocramius/ProxyManager/pull/126) 10 * Proxies are now being always auto-generated if they could not be autoloaded by a factory. The methods 11 [`ProxyManager\Configuration#setAutoGenerateProxies()`](https://github.com/Ocramius/ProxyManager/blob/0.5.0-BETA2/src/ProxyManager/Configuration.php#L67) 12 and [`ProxyManager\Configuration#doesAutoGenerateProxies()`](https://github.com/Ocramius/ProxyManager/blob/0.5.0-BETA2/src/ProxyManager/Configuration.php#L75) 13 are now no-op and deprecated, and will be removed in the next minor 14 version [#87](https://github.com/Ocramius/ProxyManager/pull/87) [#90](https://github.com/Ocramius/ProxyManager/pull/90) 15 * Proxy public properties defaults are now set before initialization [#116](https://github.com/Ocramius/ProxyManager/pull/116) [#122](https://github.com/Ocramius/ProxyManager/pull/122) 16 17 # 0.4.0 18 19 * An optional parameter `$options` was introduced 20 in [`ProxyManager\Inflector\ClassNameInflectorInterface#getProxyClassName($className, array $options = array())`](https://github.com/Ocramius/ProxyManager/blob/master/src/ProxyManager/Inflector/ClassNameInflectorInterface.php) 21 parametrize the generated class name as of [#10](https://github.com/Ocramius/ProxyManager/pull/10) 22 and [#59](https://github.com/Ocramius/ProxyManager/pull/59) 23 * Generated hydrators no longer have constructor arguments. Any required reflection instantiation is now dealt with 24 in the hydrator internally as of [#63](https://github.com/Ocramius/ProxyManager/pull/63) 25 26 # 0.3.4 27 28 * Interface names are also supported for proxy generation as of [#40](https://github.com/Ocramius/ProxyManager/pull/40) 29 30 # 0.3.3 31 32 * [Generated hydrators](https://github.com/Ocramius/ProxyManager/tree/master/docs/generated-hydrator.md) were introduced 33 34 # 0.3.2 35 36 * An additional (optional) [by-ref parameter was added](https://github.com/Ocramius/ProxyManager/pull/31) 37 to the lazy loading proxies' initializer to allow unsetting the initializer with less overhead. 38 39 # 0.3.0 40 41 * Dependency to [jms/cg](https://github.com/schmittjoh/cg-library) removed 42 * Moved code generation logic to [`Zend\Code`](https://github.com/zendframework/zf2) 43 * Added method [`ProxyManager\Inflector\ClassNameInflectorInterface#isProxyClassName($className)`](https://github.com/Ocramius/ProxyManager/blob/master/src/ProxyManager/Inflector/ClassNameInflectorInterface.php) 44 * The constructor of [`ProxyManager\Autoloader\Autoloader`](https://github.com/Ocramius/ProxyManager/blob/master/src/ProxyManager/Autoloader/Autoloader.php) 45 changed from `__construct(\ProxyManager\FileLocator\FileLocatorInterface $fileLocator)` to 46 `__construct(\ProxyManager\FileLocator\FileLocatorInterface $fileLocator, \ProxyManager\Inflector\ClassNameInflectorInterface $classNameInflector)` 47 * Classes implementing `CG\Core\GeneratorStrategyInterface` now implement 48 [`ProxyManager\GeneratorStrategy\GeneratorStrategyInterface`](https://github.com/Ocramius/ProxyManager/blob/master/src/ProxyManager/GeneratorStrategy/GeneratorStrategyInterface.php) 49 instead 50 * All code generation logic has been replaced - If you wrote any logic based on `ProxyManager\ProxyGenerator`, you will 51 have to rewrite it 52 53 # 0.2.0 54 55 * The signature of initializers to be used with proxies implementing 56 [`ProxyManager\Proxy\LazyLoadingInterface`](https://github.com/Ocramius/ProxyManager/blob/master/src/ProxyManager/Proxy/LazyLoadingInterface.php) 57 changed from: 58 59 ```php 60 $initializer = function ($proxy, & $wrappedObject, $method, $parameters) {}; 61 ``` 62 63 to 64 65 ```php 66 $initializer = function (& $wrappedObject, $proxy, $method, $parameters) {}; 67 ``` 68 69 Only the order of parameters passed to the closures has been changed.
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Nov 11 20:33:01 2020 | Cross-referenced by PHPXref 0.7.1 |