Phalcon container
NOTE
All classes are prefixed with Phalcon
Container\Container¶
Class Source on GitHub
Phalcon\Container\Container— implementsPhalcon\Contracts\Container\Service\Collection
Uses Closure · Phalcon\Container\Definition\Processor\ClosureProcessor · Phalcon\Container\Definition\Processor\ObjectProcessor · Phalcon\Container\Definition\Processor\Processor · Phalcon\Container\Definition\Processor\StringProcessor · Phalcon\Container\Definition\ServiceDefinition · Phalcon\Container\Definition\ServiceLifetime · Phalcon\Container\Exceptions\CannotExtendResolved · Phalcon\Container\Exceptions\CircularAliasFound · Phalcon\Container\Exceptions\InstanceNotFound · Phalcon\Container\Exceptions\NoProcessorFound · Phalcon\Container\Exceptions\ParameterNotFound · Phalcon\Container\Exceptions\ServiceNotFound · Phalcon\Container\Exceptions\ServiceNotRegistered · Phalcon\Container\Resolver\Lazy\Lazy · Phalcon\Container\Resolver\Resolver · Phalcon\Contracts\Container\Service\Collection · Phalcon\Di\InjectionAwareInterface · ReflectionException
Method Summary¶
public __construct() public ServiceDefinition bind(string $interfaceName,string $concrete) Bind an interface to a concrete class public Closure callableGet( string $name ) Resolve to a closure on a get() public Closure callableNew( string $name ) Resolve to a closure on a new() public void extend(string $name,callable $callableObject) Extends the definition public mixed get( string $name ) Resolve and return an element registerd in the container public string getAlias( string $name ) Return an alias public array getByTag( string $tag ) Return services by tag public ServiceDefinition getDefinition( string $name ) Return the service definition public object getInstance( string $name ) Return a stored instance public mixed getParameter( string $name ) Return a parameter public Resolver getResolver() Return the resolver public object getService( string $serviceName ) Resolve an return a service public bool has( string $name ) Does the container have a particular service public bool hasAlias( string $name ) Does the service have an alias public bool hasDefinition( string $name ) Does the service have a definition public bool hasInstance( string $name ) Does the service have an instance public bool hasParameter( string $name ) Does the service have a parameter public bool hasService( string $serviceName ) Does the container have a particular service public bool isAutowireEnabled() Is AutoWiring enabled public mixed new( string $name ) Resolve and return a new service public ServiceDefinition newDefinition( string $name ) Return a new service definition public ServiceDefinition set(string $name,mixed $definition) Set a service public static setAlias(string $name,string $alias) Set an alias public static setAutowire( bool $enabled ) Set AutoWire public static setDefinition(string $name,ServiceDefinition $definition) Set a definition public static setInstance(string $name,object $instance,string $lifetime) Set an instance public static setParameter(string $name,mixed $value) Set a parameter public void setTag(string $tag,string $serviceName) Register a tag with a service public void unsetAlias( string $name ) Remove an alias public void unsetDefinition( string $name ) Remove a definition public void unsetInstance( string $name ) Remove an instance public void unsetInstances( string $lifetime ) Remove instances based on lifetime public void unsetParameter( string $name ) Remove a parameter Properties¶
protected array<string, string> $aliases = [] protected bool $autowire = true protected array<string, string> $instanceLifetimes = [] protected array<string, object> $instances = [] protected array<string, mixed> $parameters = [] protected array<string, Processor> $processors = [] protected Resolver $resolver protected array<string, ServiceDefinition> $services = [] protected array<string, list<string>> $tags = [] Methods¶
__construct()¶
bind()¶
Bind an interface to a concrete class
callableGet()¶
Resolve to a closure on a get()
callableNew()¶
Resolve to a closure on a new()
extend()¶
Extends the definition
get()¶
Resolve and return an element registerd in the container
getAlias()¶
Return an alias
getByTag()¶
Return services by tag
getDefinition()¶
Return the service definition
getInstance()¶
Return a stored instance
getParameter()¶
Return a parameter
getResolver()¶
Return the resolver
getService()¶
Resolve an return a service
has()¶
Does the container have a particular service
hasAlias()¶
Does the service have an alias
hasDefinition()¶
Does the service have a definition
hasInstance()¶
Does the service have an instance
hasParameter()¶
Does the service have a parameter
hasService()¶
Does the container have a particular service
isAutowireEnabled()¶
Is AutoWiring enabled
new()¶
Resolve and return a new service
newDefinition()¶
Return a new service definition
set()¶
Set a service
setAlias()¶
Set an alias
setAutowire()¶
Set AutoWire
setDefinition()¶
Set a definition
setInstance()¶
Set an instance
setParameter()¶
Set a parameter
setTag()¶
Register a tag with a service
unsetAlias()¶
Remove an alias
unsetDefinition()¶
Remove a definition
unsetInstance()¶
Remove an instance
unsetInstances()¶
Remove instances based on lifetime
unsetParameter()¶
Remove a parameter
Container\ContainerFactory¶
Class Source on GitHub
Phalcon\Container\ContainerFactory— implementsPhalcon\Contracts\Container\Ioc\IocContainerFactory
Uses Phalcon\Contracts\Container\Ioc\IocContainerFactory · Phalcon\Contracts\Container\Service\Provider
Method Summary¶
public static addProvider( Provider $provider ) Adds a provider public Container newContainer() Returns a new container Properties¶
protected array<array-key, Provider> $providers = [] Methods¶
addProvider()¶
Adds a provider
newContainer()¶
Returns a new container
Container\Definition\DefinitionType¶
Class Source on GitHub
Phalcon\Container\Definition\DefinitionType
Constants¶
string CLOSURE_TYPE = "closure" string OBJECT_TYPE = "object" string PARAMETER_TYPE = "parameter" string STRING_TYPE = "string" Container\Definition\Processor\ClosureProcessor¶
Class Source on GitHub
Phalcon\Container\Definition\Processor\ClosureProcessor— implementsPhalcon\Container\Definition\Processor\Processor
Uses Closure · Phalcon\Container\Definition\DefinitionType · Phalcon\Container\Definition\ServiceDefinition
Method Summary¶
public bool canProcess( mixed $definition ) Wheteher the definition is a Closure public ServiceDefinition process(string $name,mixed $definition,object $container) Process the Closure Methods¶
canProcess()¶
Wheteher the definition is a Closure
process()¶
Process the Closure
Container\Definition\Processor\ObjectProcessor¶
Class Source on GitHub
Phalcon\Container\Definition\Processor\ObjectProcessor— implementsPhalcon\Container\Definition\Processor\Processor
Uses Closure · Phalcon\Container\Definition\DefinitionType · Phalcon\Container\Definition\ServiceDefinition
Method Summary¶
public bool canProcess( mixed $definition ) Whether the definition is an Object (not Closure) public ServiceDefinition process(string $name,mixed $definition,object $container) Process the Object Methods¶
canProcess()¶
Whether the definition is an Object (not Closure)
process()¶
Process the Object
Container\Definition\Processor\ParameterProcessor¶
Class Source on GitHub
Phalcon\Container\Definition\Processor\ParameterProcessor— implementsPhalcon\Container\Definition\Processor\Processor
Uses Closure · Phalcon\Container\Definition\DefinitionType · Phalcon\Container\Definition\ServiceDefinition
Method Summary¶
public bool canProcess( mixed $definition ) Whetehr the definition is a parameter public ServiceDefinition process(string $name,mixed $definition,object $container) Process the parameter Methods¶
canProcess()¶
Whetehr the definition is a parameter
process()¶
Process the parameter
Container\Definition\Processor\Processor¶
Interface Source on GitHub
Phalcon\Container\Definition\Processor\Processor
Uses Phalcon\Container\Definition\ServiceDefinition
Method Summary¶
public bool canProcess( mixed $definition ) Can this definition be processed? public ServiceDefinition process(string $name,mixed $definition,object $container) Process the definition Methods¶
canProcess()¶
Can this definition be processed?
process()¶
Process the definition
Container\Definition\Processor\StringProcessor¶
Class Source on GitHub
Phalcon\Container\Definition\Processor\StringProcessor— implementsPhalcon\Container\Definition\Processor\Processor
Uses Phalcon\Container\Definition\DefinitionType · Phalcon\Container\Definition\ServiceDefinition
Method Summary¶
public bool canProcess( mixed $definition ) Whether the definition is a class string public ServiceDefinition process(string $name,mixed $definition,object $container) Process the class string Methods¶
canProcess()¶
Whether the definition is a class string
process()¶
Process the class string
Container\Definition\ServiceDefinition¶
Class Source on GitHub
Phalcon\Container\Definition\ServiceDefinition
Uses Phalcon\Container\Exceptions\FrozenDefinition · Phalcon\Container\Exceptions\InvalidExtender · Phalcon\Container\Exceptions\NoClassSet · Phalcon\Container\Exceptions\NoFactorySet · ReflectionClass · ReflectionException
Method Summary¶
public __construct(string $serviceName,string $type,mixed $raw = null) public static addExtender( callable $extender ) Adds an extender public static addTag( string $tag ) Adds a tag public object buildService( object $container ) Builds a service and returns the instance back public void freeze( object $container ) Freezes the container public array getArguments() Returns the arguments public string getClass() Returns the class public array getConstructorArgs() Returns the constructor arguments public array getExtenders() Returns the extenders public callable getFactory() Returns the factory public string getLifetime() Returns the lifetime public string getServiceName() Returns the name of the service public array getTags() Returns the tags public string getType() Returns the type public bool hasClass() Does it have a class public bool hasExtenders() Do we have extenders public bool hasFactory() Does it have a factory public bool isCacheable() Is it cacheable public bool isFrozen() Is it frozen public static setArgument(mixed $param,mixed $value) Set an argument public static setClass( string $className ) Set a class public static setContainer( object $container ) Set the container public static setExtenders( array $extenders ) Set extenders public static setFactory( callable $factory ) Set a factory public static setIsCacheable( bool $isCacheable ) Set cachable public static setLifetime( string $lifetime ) Set lifetime public static unsetClass() Unset class public static unsetExtenders() Unset extenders public static unsetFactory() Unset the factory protected void checkFrozen() Check if frozen Properties¶
protected array $arguments = [] protected string | null $className = null protected array $constructorArgs = [] protected object | null $container = null protected array<array-key, callable> $extenders = [] protected callable | null $factory = null protected bool $frozen = false protected bool $isCacheable = false protected string $lifetime = ServiceLifetime::SCOPED protected mixed $raw = null protected mixed $serviceName protected array $tags = [] protected mixed $type Methods¶
__construct()¶
addExtender()¶
Adds an extender
addTag()¶
Adds a tag
buildService()¶
Builds a service and returns the instance back
freeze()¶
Freezes the container
getArguments()¶
Returns the arguments
getClass()¶
Returns the class
getConstructorArgs()¶
Returns the constructor arguments
getExtenders()¶
Returns the extenders
getFactory()¶
Returns the factory
getLifetime()¶
Returns the lifetime
getServiceName()¶
Returns the name of the service
getTags()¶
Returns the tags
getType()¶
Returns the type
hasClass()¶
Does it have a class
hasExtenders()¶
Do we have extenders
hasFactory()¶
Does it have a factory
isCacheable()¶
Is it cacheable
isFrozen()¶
Is it frozen
setArgument()¶
Set an argument
setClass()¶
Set a class
setContainer()¶
Set the container
setExtenders()¶
Set extenders
setFactory()¶
Set a factory
setIsCacheable()¶
Set cachable
setLifetime()¶
Set lifetime
unsetClass()¶
Unset class
unsetExtenders()¶
Unset extenders
unsetFactory()¶
Unset the factory
checkFrozen()¶
Check if frozen
Container\Definition\ServiceLifetime¶
Class Source on GitHub
Phalcon\Container\Definition\ServiceLifetime
Constants¶
string SCOPED = "SCOPED" string SINGLETON = "SINGLETON" string TRANSIENT = "TRANSIENT" Container\Exceptions\CannotExtendResolved¶
Class Source on GitHub
BaseExceptionPhalcon\Container\Exceptions\ExceptionPhalcon\Container\Exceptions\CannotExtendResolved
Method Summary¶
Methods¶
__construct()¶
Cannot extend a resolved service
Container\Exceptions\CannotResolveParameter¶
Class Source on GitHub
BaseExceptionPhalcon\Container\Exceptions\ExceptionPhalcon\Container\Exceptions\CannotResolveParameter
Method Summary¶
Methods¶
__construct()¶
Cannot resolve a parameter
Container\Exceptions\CircularAliasFound¶
Class Source on GitHub
BaseExceptionPhalcon\Container\Exceptions\ExceptionPhalcon\Container\Exceptions\CircularAliasFound
Method Summary¶
Methods¶
__construct()¶
Circular Alias found
Container\Exceptions\ContainerThrowable¶
Interface Source on GitHub
ThrowablePhalcon\Contracts\Container\Ioc\IocThrowablePhalcon\Container\Exceptions\ContainerThrowable— extendsPhalcon\Contracts\Container\Ioc\IocThrowable,Phalcon\Contracts\Container\Resolver\ResolverThrowable,Phalcon\Contracts\Container\Service\Throwable
Uses Phalcon\Contracts\Container\Ioc\IocThrowable · Phalcon\Contracts\Container\Resolver\ResolverThrowable · Phalcon\Contracts\Container\Service\Throwable
Container\Exceptions\EnvNotDefined¶
Final Source on GitHub
BaseExceptionPhalcon\Container\Exceptions\ExceptionPhalcon\Container\Exceptions\EnvNotDefined
Method Summary¶
Methods¶
__construct()¶
Container\Exceptions\Exception¶
Class Source on GitHub
BaseExceptionPhalcon\Container\Exceptions\Exception— implementsPhalcon\Container\Exceptions\ContainerThrowablePhalcon\Container\Exceptions\CannotExtendResolvedPhalcon\Container\Exceptions\CannotResolveParameterPhalcon\Container\Exceptions\CircularAliasFoundPhalcon\Container\Exceptions\EnvNotDefinedPhalcon\Container\Exceptions\FrozenDefinitionPhalcon\Container\Exceptions\InstanceNotFoundPhalcon\Container\Exceptions\InvalidExtenderPhalcon\Container\Exceptions\NoClassSetPhalcon\Container\Exceptions\NoFactorySetPhalcon\Container\Exceptions\NoProcessorFoundPhalcon\Container\Exceptions\ParameterNotFoundPhalcon\Container\Exceptions\ServiceNotFoundPhalcon\Container\Exceptions\ServiceNotRegistered
Uses Exception
Container\Exceptions\FrozenDefinition¶
Class Source on GitHub
BaseExceptionPhalcon\Container\Exceptions\ExceptionPhalcon\Container\Exceptions\FrozenDefinition
Method Summary¶
Methods¶
__construct()¶
Definition is frozen
Container\Exceptions\InstanceNotFound¶
Final Source on GitHub
BaseExceptionPhalcon\Container\Exceptions\ExceptionPhalcon\Container\Exceptions\InstanceNotFound
Method Summary¶
Methods¶
__construct()¶
Container\Exceptions\InvalidExtender¶
Class Source on GitHub
BaseExceptionPhalcon\Container\Exceptions\ExceptionPhalcon\Container\Exceptions\InvalidExtender
Method Summary¶
Methods¶
__construct()¶
Invalid extender (not callable)
Container\Exceptions\NoClassSet¶
Class Source on GitHub
BaseExceptionPhalcon\Container\Exceptions\ExceptionPhalcon\Container\Exceptions\NoClassSet
Method Summary¶
Methods¶
__construct()¶
No set for service
Container\Exceptions\NoFactorySet¶
Class Source on GitHub
BaseExceptionPhalcon\Container\Exceptions\ExceptionPhalcon\Container\Exceptions\NoFactorySet
Method Summary¶
Methods¶
__construct()¶
No factory for service
Container\Exceptions\NoProcessorFound¶
Class Source on GitHub
BaseExceptionPhalcon\Container\Exceptions\ExceptionPhalcon\Container\Exceptions\NoProcessorFound
Method Summary¶
Methods¶
__construct()¶
No processor found
Container\Exceptions\ParameterNotFound¶
Final Source on GitHub
BaseExceptionPhalcon\Container\Exceptions\ExceptionPhalcon\Container\Exceptions\ParameterNotFound
Method Summary¶
Methods¶
__construct()¶
Container\Exceptions\ServiceNotFound¶
Class Source on GitHub
BaseExceptionPhalcon\Container\Exceptions\ExceptionPhalcon\Container\Exceptions\ServiceNotFound
Method Summary¶
Methods¶
__construct()¶
Service not found
Container\Exceptions\ServiceNotRegistered¶
Class Source on GitHub
BaseExceptionPhalcon\Container\Exceptions\ExceptionPhalcon\Container\Exceptions\ServiceNotRegistered
Method Summary¶
Methods¶
__construct()¶
Service not registered
Container\Provider\Cli¶
Class Source on GitHub
Phalcon\Container\Provider\Cli— implementsPhalcon\Contracts\Container\Service\Provider
Uses Phalcon\Auth\Access\AccessLocator · Phalcon\Contracts\Container\Service\Collection · Phalcon\Contracts\Container\Service\Provider · Phalcon\Filter\Filter · Phalcon\Filter\FilterFactory
Method Summary¶
Methods¶
provide()¶
Provider for commonly used CLI applications
Container\Provider\Web¶
Class Source on GitHub
Phalcon\Container\Provider\Web— implementsPhalcon\Contracts\Container\Service\Provider
Uses Phalcon\Auth\Access\AccessLocator · Phalcon\Contracts\Container\Service\Collection · Phalcon\Contracts\Container\Service\Provider · Phalcon\Filter\Filter · Phalcon\Filter\FilterFactory
Method Summary¶
Methods¶
provide()¶
Provider for commonly used Web applications
Container\Resolver\Lazy\ArrayValues¶
Class Source on GitHub
Phalcon\Container\Resolver\Lazy\LazyPhalcon\Container\Resolver\Lazy\ArrayValues— implementsArrayAccess,Countable,IteratorAggregate
Uses ArrayAccess · ArrayIterator · Countable · IteratorAggregate
Method Summary¶
public __construct( array $values = [] ) public int count() public ArrayIterator getIterator() public void merge( mixed $values ) public bool offsetExists( mixed $offset ) public mixed offsetGet( mixed $offset ) public void offsetSet(mixed $offset,mixed $value) public void offsetUnset( mixed $offset ) public array resolve( object $ioc ) Resolve to an array, where each element has itself been lazy-resolved. protected mixed resolveValue(object $ioc,mixed $value) protected array resolveValues(object $ioc,array $values) Properties¶
protected array<array-key, mixed> $values = [] Methods¶
__construct()¶
count()¶
getIterator()¶
merge()¶
offsetExists()¶
offsetGet()¶
offsetSet()¶
offsetUnset()¶
resolve()¶
Resolve to an array, where each element has itself been lazy-resolved.
resolveValue()¶
resolveValues()¶
Container\Resolver\Lazy\Call¶
Class Source on GitHub
Phalcon\Container\Resolver\Lazy\LazyPhalcon\Container\Resolver\Lazy\Call
Method Summary¶
public __construct( callable $callableObject ) public mixed resolve( object $ioc ) Resolve the callable Properties¶
protected mixed $callableObject Methods¶
__construct()¶
resolve()¶
Resolve the callable
Container\Resolver\Lazy\CallableGet¶
Class Source on GitHub
Phalcon\Container\Resolver\Lazy\LazyPhalcon\Container\Resolver\Lazy\CallableGet
Method Summary¶
Properties¶
protected string|Lazy $id Methods¶
__construct()¶
resolve()¶
Resolve to a closure on a get()
Container\Resolver\Lazy\CallableNew¶
Class Source on GitHub
Phalcon\Container\Resolver\Lazy\LazyPhalcon\Container\Resolver\Lazy\CallableNew
Method Summary¶
Properties¶
protected string|Lazy $id Methods¶
__construct()¶
resolve()¶
Resolve to a closure on a new()
Container\Resolver\Lazy\CsEnv¶
Class Source on GitHub
Phalcon\Container\Resolver\Lazy\LazyPhalcon\Container\Resolver\Lazy\EnvPhalcon\Container\Resolver\Lazy\CsEnv
Uses Phalcon\Container\Exceptions\EnvNotDefined
Method Summary¶
Methods¶
resolve()¶
Resolve the getEnv() from keys as a comma separated list
Container\Resolver\Lazy\Env¶
Class Source on GitHub
Phalcon\Container\Resolver\Lazy\LazyPhalcon\Container\Resolver\Lazy\Env
Uses Phalcon\Container\Exceptions\EnvNotDefined
Method Summary¶
public __construct(string $varname,string $vartype = null) public mixed resolve( object $ioc ) Resolve an environment variable protected mixed cast( mixed $value ) Cast a value to the defined type (if any) protected string getEnv() Return the env value Properties¶
protected string $varname protected string|null $vartype = null Methods¶
__construct()¶
resolve()¶
Resolve an environment variable
cast()¶
Cast a value to the defined type (if any)
getEnv()¶
Return the env value
Container\Resolver\Lazy\EnvDefault¶
Class Source on GitHub
Phalcon\Container\Resolver\Lazy\LazyPhalcon\Container\Resolver\Lazy\EnvPhalcon\Container\Resolver\Lazy\EnvDefault
Uses Phalcon\Container\Exceptions\EnvNotDefined
Method Summary¶
public __construct(string $varname,mixed $defaultValue,string $vartype = null) public mixed resolve( object $ioc ) Resolve an environment variable, returning the default if not defined Methods¶
__construct()¶
resolve()¶
Resolve an environment variable, returning the default if not defined
Container\Resolver\Lazy\FunctionCall¶
Class Source on GitHub
Phalcon\Container\Resolver\Lazy\LazyPhalcon\Container\Resolver\Lazy\FunctionCall
Method Summary¶
public __construct(string $functionName,array $arguments) public mixed resolve( object $ioc ) Resolve a function Properties¶
protected array<array-key, mixed> $arguments protected string $functionName Methods¶
__construct()¶
resolve()¶
Resolve a function
Container\Resolver\Lazy\Get¶
Class Source on GitHub
Phalcon\Container\Resolver\Lazy\LazyPhalcon\Container\Resolver\Lazy\Get
Method Summary¶
Properties¶
protected string|Lazy $id Methods¶
__construct()¶
resolve()¶
Resolve a shared instance
Container\Resolver\Lazy\GetCall¶
Class Source on GitHub
Phalcon\Container\Resolver\Lazy\LazyPhalcon\Container\Resolver\Lazy\GetCall
Method Summary¶
public __construct(mixed $id,string $method,array $arguments) public mixed resolve( object $ioc ) Resolve a shared instance method call Properties¶
protected array<array-key, mixed> $arguments protected string|Lazy $id protected string $method Methods¶
__construct()¶
resolve()¶
Resolve a shared instance method call
Container\Resolver\Lazy\Lazy¶
Abstract Source on GitHub
Phalcon\Container\Resolver\Lazy\Lazy— implementsPhalcon\Contracts\Container\Resolver\ResolvablePhalcon\Container\Resolver\Lazy\ArrayValuesPhalcon\Container\Resolver\Lazy\CallPhalcon\Container\Resolver\Lazy\CallableGetPhalcon\Container\Resolver\Lazy\CallableNewPhalcon\Container\Resolver\Lazy\EnvPhalcon\Container\Resolver\Lazy\FunctionCallPhalcon\Container\Resolver\Lazy\GetPhalcon\Container\Resolver\Lazy\GetCallPhalcon\Container\Resolver\Lazy\NewCallPhalcon\Container\Resolver\Lazy\NewInstancePhalcon\Container\Resolver\Lazy\StaticCall
Uses Phalcon\Contracts\Container\Resolver\Resolvable
Method Summary¶
public mixed __invoke( object $ioc ) public mixed resolve( object $ioc ) protected mixed resolveArgument(object $ioc,mixed $argument) protected array resolveArguments(object $ioc,array $arguments) Methods¶
__invoke()¶
resolve()¶
resolveArgument()¶
resolveArguments()¶
Container\Resolver\Lazy\LazyFactory¶
Class Source on GitHub
Phalcon\Container\Resolver\Lazy\LazyFactory
Method Summary¶
public ArrayValues arrayValues( array $values ) public Call call( callable $callableObject ) public CallableGet callableGet( string $id ) public CallableNew callableNew( string $id ) public CsEnv csEnv(string $name,string $type = null) public Env env(string $name,string $type = null) public EnvDefault envDefault(string $name,mixed $defaultValue,string $type = null) public FunctionCall functionCall(string $functionName,array $args) public Get get( string $id ) public GetCall getCall(string $id,string $method,array $args) public NewCall newCall(string $id,string $method,array $args) public NewInstance newInstance( string $id ) public StaticCall staticCall(string $className,string $method,array $args) Methods¶
arrayValues()¶
call()¶
callableGet()¶
callableNew()¶
csEnv()¶
env()¶
envDefault()¶
public static function envDefault(
string $name,
mixed $defaultValue,
string $type = null
): EnvDefault;
functionCall()¶
get()¶
getCall()¶
newCall()¶
newInstance()¶
staticCall()¶
Container\Resolver\Lazy\NewCall¶
Class Source on GitHub
Phalcon\Container\Resolver\Lazy\LazyPhalcon\Container\Resolver\Lazy\NewCall
Method Summary¶
public __construct(mixed $id,string $method,array $arguments) public mixed resolve( object $ioc ) Resolve a new instance method call Properties¶
protected array<array-key, mixed> $arguments protected string|Lazy $id protected string $method Methods¶
__construct()¶
resolve()¶
Resolve a new instance method call
Container\Resolver\Lazy\NewInstance¶
Class Source on GitHub
Phalcon\Container\Resolver\Lazy\LazyPhalcon\Container\Resolver\Lazy\NewInstance
Method Summary¶
Properties¶
protected string|Lazy $id Methods¶
__construct()¶
resolve()¶
Resolve a new instance
Container\Resolver\Lazy\StaticCall¶
Class Source on GitHub
Phalcon\Container\Resolver\Lazy\LazyPhalcon\Container\Resolver\Lazy\StaticCall
Method Summary¶
public __construct(mixed $className,string $method,array $arguments) public mixed resolve( object $ioc ) Resolve a static method call Properties¶
protected array<array-key, mixed> $arguments protected string|Lazy $className protected string $method Methods¶
__construct()¶
resolve()¶
Resolve a static method call
Container\Resolver\Resolver¶
Class Source on GitHub
Phalcon\Container\Resolver\Resolver— implementsPhalcon\Contracts\Container\Resolver\ResolverService
Uses Closure · Phalcon\Container\Exceptions\CannotResolveParameter · Phalcon\Container\Resolver\Lazy\Lazy · Phalcon\Contracts\Container\Resolver\ResolverService · ReflectionClass · ReflectionException · ReflectionFunction · ReflectionMethod · ReflectionNamedType · ReflectionParameter · ReflectionType
Method Summary¶
public bool isResolvableClass( string $className ) Is this a resolvable class? public mixed resolveCall(object $ioc,callable $callableObject,array $arguments) Resolve a call public object resolveClass(object $ioc,string $className,array $arguments) Resolve a class public void resolveMethod(object $ioc,ReflectionMethod $method,object $instance) Resolve a method public mixed resolveParameter(object $ioc,ReflectionParameter $parameter) Resolve parameters public array resolveParameters(object $ioc,array $parameters,array $arguments) public mixed resolveType(object $ioc,mixed $type) type is ReflectionType Methods¶
isResolvableClass()¶
Is this a resolvable class?
resolveCall()¶
Resolve a call
resolveClass()¶
Resolve a class
resolveMethod()¶
Resolve a method
resolveParameter()¶
Resolve parameters
resolveParameters()¶
resolveType()¶
type is ReflectionType