DiInterface::attempt

abstract public attempt (mixed $name, mixed $definition, [mixed $shared]) ...

DiInterface

implements ArrayAccess Source on GitHub Methods abstract public set (mixed $name, mixed $definition, [mixed $shared]) ... abstract public setShared (mixed $name, mixed $definition) ... abstract public remove (mixed $name) ... abstract public attempt (mixed $name, mixed $definition, [mixed $shared]) ... abstract public get (mixed $name, [mixed $parameters]) ... abstract public getShared (mixed $name, [mixed $parameters]) ... abstract public setRaw (mixed $name, Phalcon\Di\ServiceInterface $rawDe

Di::__call

public __call (string $method, [array $arguments]) Magic method to get or set services using setters/getters

Di::wasFreshInstance

public wasFreshInstance () Check whether the last service obtained via getShared produced a fresh instance or an existing one

Di::setShared

public setShared (mixed $name, mixed $definition) Registers an “always shared” service in the services container

Di::setRaw

public setRaw (mixed $name, Phalcon\Di\ServiceInterface $rawDefinition) Sets a service using a raw Phalcon\Di\Service definition

Di::setInternalEventsManager

public setInternalEventsManager (Phalcon\Events\ManagerInterface $eventsManager) Sets the internal event manager

Di::setDefault

public static setDefault (Phalcon\DiInterface $dependencyInjector) Set a default dependency injection container to be obtained into static methods

Di::set

public set (mixed $name, mixed $definition, [mixed $shared]) Registers a service in the services container

Di::reset

public static reset () Resets the internal default DI