Di::setShared

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

Di::__call

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

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::wasFreshInstance

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

DiInterface::getDefault

abstract public static getDefault () ...

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::setRaw

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

Di::reset

public static reset () Resets the internal default DI

Di::remove

public remove (mixed $name) Removes a service in the services container It also removes any shared instance created for the service