Abstract class Phalcon\Di\Injectable

implements Phalcon\Di\InjectionAwareInterface, Phalcon\Events\EventsAwareInterface

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 (unknown $dependencyInjector)

Sets the dependency injector

public getDI ()

Returns the internal dependency injector

public setEventsManager (unknown $eventsManager)

Sets the event manager

public getEventsManager ()

Returns the internal event manager

public __get (unknown $propertyName)

Magic method __get