Di\InjectionAwareInterface

Source on GitHub Methods abstract public setDI (Phalcon\DiInterface $dependencyInjector) ... abstract public getDI () ...

Di\Service::getDefinition

public mixed getDefinition () Returns the service definition

Di\Service::getName

public getName () Returns the service’s name

Di\FactoryDefault\Cli

extends class Phalcon\Di\FactoryDefault implements Phalcon\DiInterface, ArrayAccess Source on GitHub This is a variant of the standard Phalcon\Di. By default it automatically registers all the services provided by the framework. Thanks to this, the developer does not need to register each service individually. This class is specially suitable for CLI applications Methods public __construct () Phalcon\Di\FactoryDefault\Cli constructor public setInternalEventsManager (Phalcon\Events\ManagerInterf

Di\Injectable::setDI

public setDI (Phalcon\DiInterface $dependencyInjector) Sets the dependency injector

Di\Injectable::getEventsManager

public getEventsManager () Returns the internal event manager

Di\Injectable::getDI

public getDI () Returns the internal dependency injector

Di\Injectable

implements Phalcon\Di\InjectionAwareInterface, Phalcon\Events\EventsAwareInterface Source on GitHub This class allows to access services in the services container by just only accessing a public property with the same name of a registered service Methods public setDI (Phalcon\DiInterface $dependencyInjector) Sets the dependency injector public getDI () Returns the internal dependency injector public setEventsManager (Phalcon\Events\ManagerInterface $eventsManager) Sets the event manager public

Di\Exception

extends class Phalcon\Exception implements Throwable Source on GitHub Methods final private Exception __clone () inherited from Exception Clone the exception public __construct ([string $message], [int $code], [Exception $previous]) inherited from Exception Exception constructor public __wakeup () inherited from Exception ... final public string getMessage () inherited from Exception Gets the Exception message final public int getCode () inherited from Exception Gets the Exception code fin

Di\FactoryDefault

extends class Phalcon\Di implements ArrayAccess, Phalcon\DiInterface Source on GitHub This is a variant of the standard Phalcon\Di. By default it automatically registers all the services provided by the framework. Thanks to this, the developer does not need to register each service individually providing a full stack framework Methods public __construct () Phalcon\Di\FactoryDefault constructor public setInternalEventsManager (Phalcon\Events\ManagerInterface $eventsManager) inherited from Phalco