PHP Webiny\Component\ServiceManager Namespace

Nested Namespaces

Webiny\Component\ServiceManager\Tests

Сlasses

Name Description
Argument Argument class serves as a wrapper for service arguments.
It contains the value from config file and knows how to get the real value of it, like including other services, instantiating classes, etc.
ConfigCompiler ConfigCompiler class is responsible for compiling a valid ServiceConfig object.
It parses the config file, manages inheritance, wraps arguments into Argument objects and makes sure the config is valid.
FactoryArgument FactoryArgument class is responsible for handling factory services. It is different from Argument class in that it differentiates static and non-static calls to your 'factory' parameter and it only supports handling of services and classes.
ServiceConfig ServiceConfig class contains compiled service config and serves as a parameter for ServiceCreator when constructing services.
ServiceCreator ServiceCreator class is responsible for taking a ServiceConfig and building a service instance.
ServiceManager ServiceManager is the main class for working with services.
ServiceManagerException Exception class for the ServiceManager component.
ServiceScope ServiceScope class is used for service scope validation and auto completion

Traits

Name Description
ServiceManagerTrait A library of ServiceManager functions