Lazy proxy dumper capable of generating the instantiation logic PHP code for proxied services.

public abstract getProxyCode(Symfony\Component\DependencyInjection\Definition $definition) : string

Generates the code for the lazy proxy.

  • param string|null $id
public abstract getProxyFactoryCode(Symfony\Component\DependencyInjection\Definition $definition, string $id, string $factoryCode) : string

Generates the code to be used to instantiate a proxy in the dumped factory code.

public abstract isProxyCandidate(Symfony\Component\DependencyInjection\Definition $definition) : bool

Inspects whether the given definitions should produce proxy instantiation logic in the dumped container.

  • param bool|null $asGhostObject Set to true after the call if the proxy is a ghost object
  • param string|null $id
© 2023 Bruce Wells
Search Namespaces \ Classes