class ManagersMethodsExtension implements MethodsClassReflectionExtension

internal  
 

Type the calls a manager forwards to its default driver.

The booted manager selects the default driver, so a different environment can select a driver with other methods. The declared return type of whatever creates that driver types it, so analysis never builds a driver, which can need secrets, extensions or connections.

Traits

Properties

protected Container|null $container from  HasContainer

Methods

void
setContainer(Container $container)

Set the container used for resolution.

getContainer()

Return the current container.

mixed
resolve(string $abstract)

Resolve the given type from the container.

__construct(ReflectionProvider $reflectionProvider, ClosureTypeFactory $closureTypeFactory, RuntimeInputs $runtimeInputs)

Create a managers methods extension.

bool
hasMethod(ClassReflection $classReflection, string $methodName)

Determine whether the manager's default driver has the public method the manager forwards.

MethodReflection
getMethod(ClassReflection $classReflection, string $methodName)

Get the driver method the manager forwards.

Details

in HasContainer at line 19
void setContainer(Container $container)

Set the container used for resolution.

Parameters

Container $container

Return Value

void

in HasContainer at line 27
Container getContainer()

Return the current container.

Return Value

Container

in HasContainer at line 35
mixed resolve(string $abstract)

Resolve the given type from the container.

Parameters

string $abstract

Return Value

mixed

at line 50
__construct(ReflectionProvider $reflectionProvider, ClosureTypeFactory $closureTypeFactory, RuntimeInputs $runtimeInputs)

Create a managers methods extension.

Parameters

ReflectionProvider $reflectionProvider
ClosureTypeFactory $closureTypeFactory
RuntimeInputs $runtimeInputs

at line 60
bool hasMethod(ClassReflection $classReflection, string $methodName)

Determine whether the manager's default driver has the public method the manager forwards.

Parameters

ClassReflection $classReflection
string $methodName

Return Value

bool

at line 106
MethodReflection getMethod(ClassReflection $classReflection, string $methodName)

Get the driver method the manager forwards.

Parameters

ClassReflection $classReflection
string $methodName

Return Value

MethodReflection