TITAN Library for PHP5  5.6.0
Web Software Development Kit for PHP5
extensible Class Reference

Titan Extensible Base Class. More...

Inheritance diagram for extensible:
di

Public Member Functions

register ($service, $class,...$params)
 
container ($service, $class= '')
 
object ($service, array $params=[])
 

Detailed Description

Titan Extensible Base Class.

Class: \tl\core\extensible

Author
James E. Bush work@.nosp@m.bush.nosp@m..cc
Version
5.6.0

Member Function Documentation

& register (   $service,
  $class,
  $params 
)

Register a service and return its container

Parameters
string$serviceThe name of the service
string$classThe class that handles the service
mixed$params,...(optional) Arguments to pass to the constructor (default) use preset arguments or no arguments
Returns
container
& container (   $service,
  $class = '' 
)

Get or set the container for a service

Parameters
string$serviceThe name of the service
string$class(optional) The class that handles the service; if set, forces creation of new object (default) '' = return cached object
Returns
container
& object (   $service,
array  $params = [] 
)

Create and return the container

Parameters
string$serviceThe name of the service
array$params(optional) Array of arguments to pass to the constructor (default) [] = use preset arguments or no arguments
Returns
container

The documentation for this class was generated from the following file: