Zend Framework
3.0
|
Interface for service locator. More...
Public Member Functions | |
build ($name, array $options=null) | |
Build a service by its name, using optional options (such services are NEVER cached). | |
Interface for service locator.
build | ( | $name, | |
array | $options = null |
||
) |
Build a service by its name, using optional options (such services are NEVER cached).
string | $name | |
null | array | $options |
Exception\ServiceNotFoundException | If no factory/abstract factory could be found to create the instance. |
Exception\ServiceNotCreatedException | If factory/delegator fails to create the instance. |
ContainerException | if any other error occurs |
Implemented in ServiceManager, and PatternPluginManager.