ProxyBuilder
class ProxyBuilder (View source)
Generates the string representation of the proxy service.
Methods
Generates the used proxy class name from a given class name.
Generates the used proxy namespace from a given class name.
Builds a proxy class string.
Generates the string for the method which loads the actual service.
Generates the string representation of a single method: signature, body.
Builds the constructor used to inject the actual service ID.
Build the required use statements of the proxy class.
Details
static string
buildProxyClassName(string $class_name)
Generates the used proxy class name from a given class name.
static string
buildProxyNamespace(string $class_name)
Generates the used proxy namespace from a given class name.
string
build(string $class_name)
Builds a proxy class string.
protected string
buildLazyLoadItselfMethod()
Generates the string for the method which loads the actual service.
protected string
buildMethod(ReflectionMethod $reflection_method)
Generates the string representation of a single method: signature, body.
protected string
buildParameter(ReflectionParameter $parameter)
Builds a string for a single parameter of a method.
protected string
buildMethodBody(ReflectionMethod $reflection_method)
Builds the body of a wrapped method.
protected string
buildConstructorMethod()
Builds the constructor used to inject the actual service ID.
protected string
buildUseStatements()
Build the required use statements of the proxy class.