$proxyClasses =
$this->inlineFactories ?
$this->
generateProxyClasses() : null;
if ($options['preload_classes'
]) { $this->preload =
array_combine($options['preload_classes'
],
$options['preload_classes'
]);
} $code =
$this->
startClass($options['class'
],
$baseClass).
$this->
addServices($services).
$this->
addDeprecatedAliases().
$this->
addDefaultParametersMethod() ;
$proxyClasses =
$proxyClasses ??
$this->
generateProxyClasses();
if ($this->addGetService
) { $code =
preg_replace( "/(\r?\n\r?\n public function __construct.+?\\{\r?\n)/s",
"\n private \$getService;$1 \$this->getService = \\Closure::fromCallable([\$this, 'getService']);\n",
$code,
1
);