[ProxyManager] Add FC layer

This commit is contained in:
Nicolas Grekas 2017-05-24 17:30:25 +02:00
parent b494106e2f
commit 4aeb6d8749
5 changed files with 21 additions and 1 deletions

View File

@ -82,6 +82,8 @@ DependencyInjection
* Autowiring services based on the types they implement is deprecated and won't be supported in version 4.0. Rename (or alias) your services to their FQCN id to make them autowirable.
* [BC BREAK] The `NullDumper` class has been made final
* [BC BREAK] `_defaults` and `_instanceof` are now reserved service names in Yaml configurations. Please rename any services with that names.
* [BC BREAK] non-numeric keys in methods and constructors arguments have never been supported and are now forbidden. Please remove them if you happen to have one.
@ -301,6 +303,11 @@ Process
* Extending `Process::run()`, `Process::mustRun()` and `Process::restart()` is
deprecated and won't be supported in 4.0.
ProxyManager
------------
* [BC BREAK] The `ProxyDumper` class has been made final
Security
--------

View File

@ -424,6 +424,11 @@ Process
* Extending `Process::run()`, `Process::mustRun()` and `Process::restart()` is
not supported anymore.
ProxyManager
------------
* The `ProxyDumper` class has been made final
Security
--------

View File

@ -1,6 +1,11 @@
CHANGELOG
=========
3.3.0
-----
* [BC BREAK] The `ProxyDumper` class is now final
2.3.0
-----

View File

@ -22,6 +22,8 @@ use Symfony\Component\DependencyInjection\LazyProxy\PhpDumper\DumperInterface;
* Generates dumped PHP code of proxies via reflection.
*
* @author Marco Pivetta <ocramius@gmail.com>
*
* @final since version 3.3
*/
class ProxyDumper implements DumperInterface
{
@ -63,7 +65,7 @@ class ProxyDumper implements DumperInterface
/**
* {@inheritdoc}
*/
public function getProxyFactoryCode(Definition $definition, $id)
public function getProxyFactoryCode(Definition $definition, $id, $methodName = null)
{
$instantiation = 'return';

View File

@ -28,6 +28,7 @@ CHANGELOG
will not be supported anymore in 4.0
* deprecated the `DefinitionDecorator` class in favor of `ChildDefinition`
* allow config files to be loaded using a glob pattern
* [BC BREAK] the `NullDumper` class is now final
3.2.0
-----