Accepts a visitor that should visit the child containers, component adapters and component instances.
-
visitor
$visitor: the visitor
Implementation of:
- Xyster_Container_Interface::accept()
- Accepts a visitor that should visit the child containers, component adapters and component instances.
Register a component
{@inherit}
Xyster_Container
addComponent
(
mixed $implementation, [
mixed $key =
null], [
$parameters =
null])
-
mixed
$implementation: the component's implementation class
-
mixed
$key: a key unique within the container that identifies the component
-
mixed
$parameters: the parameters that gives hints about what arguments to pass
Implementation of:
- Xyster_Container_Mutable::addComponent()
- Register a component
Register a component
{@inherit}
-
mixed
$instance: an instance of the compoent
-
mixed
$key: a key unique within the container that identifies the component
Implementation of:
- Xyster_Container_Mutable::addComponentInstance()
- Register a component instance
You can change the characteristic of registration of all subsequent components in this container
-
Xyster_Collection_Map_Interface
$properties
Implementation of:
- Xyster_Container_Mutable::change()
- You can change the characteristic of registration of all subsequent components in this container
Retrieve a component instance registered with a specific key or type
object an
getComponent
(mixed $componentKeyOrType)
-
mixed
$componentKeyOrType: the key or Type that the component was registered with
Implementation of:
- Xyster_Container_Interface::getComponent()
- Retrieve a component instance registered with a specific key or type
Find a component adapter associated with the specified key
-
mixed
$componentKey: the key that the component was registered with
Implementation of:
- Xyster_Container_Interface::getComponentAdapter()
- Find a component adapter associated with the specified key
Retrieve all the component adapters inside this container.
If the type is supplied, this method returns the adapters associated with the specified type.
Xyster_Collection_List
getComponentAdapters
([ $componentType = null])
-
Xyster_Type
$componentType
Implementation of:
- Xyster_Container_Interface::getComponentAdapters()
- Retrieve all the component adapters inside this container.
Retrieve all the registered component instances in the container
If the type parameter is supplied, this method returns the components of the specified type.
Xyster_Collection_List
getComponents
([ $componentType = null])
-
Xyster_Type
$componentType: the type to search
Implementation of:
- Xyster_Container_Interface::getComponents()
- Retrieve all the registered component instances in the container
You can set for the following operation only the characteristic of registration of a component on the fly
-
Xyster_Collection_Map_Interface
$properties
Implementation of:
- Xyster_Container_Mutable::with()
- You can set for the following operation only the characteristic of registration of a component on the fly
Gets the component key to adapter map
Xyster_Collection_Map
_getComponentKeyToAdapterCache
()
Gets an instance of the component
Gets the local instance of an adapter
Gets the adapters
Xyster_Collection_List
_getModifiableComponentAdapterList
()