[ProxyManager] fix generating proxies for root-namespaced classes
This commit is contained in:
parent
f11a282e42
commit
a47ae10a9d
@ -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