bug #35049 [ProxyManager] fix generating proxies for root-namespaced classes (nicolas-grekas)
This PR was merged into the 3.4 branch.
Discussion
----------
[ProxyManager] fix generating proxies for root-namespaced classes
| Q | A
| ------------- | ---
| Branch? | 3.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | Fix #34863
| License | MIT
| Doc PR | -
Commits
-------
a47ae10a9d
[ProxyManager] fix generating proxies for root-namespaced classes
This commit is contained in:
commit
939d3bf1f3
@ -97,6 +97,7 @@ EOF;
|
||||
public function getProxyCode(Definition $definition)
|
||||
{
|
||||
$code = $this->classGenerator->generate($this->generateProxyClass($definition));
|
||||
$code = preg_replace('/^(class [^ ]++ extends )([^\\\\])/', '$1\\\\$2', $code);
|
||||
|
||||
$code = preg_replace(
|
||||
'/(\$this->initializer[0-9a-f]++) && \1->__invoke\(\$this->(valueHolder[0-9a-f]++), (.*?), \1\);/',
|
||||
|
@ -21,5 +21,5 @@ class LazyServiceProjectServiceContainer extends Container
|
||||
}
|
||||
}
|
||||
|
||||
class stdClass_%s extends %SstdClass implements \ProxyManager\%s
|
||||
class stdClass_%s extends \stdClass implements \ProxyManager\%s
|
||||
{%a}%A
|
||||
|
Reference in New Issue
Block a user