ServiceManager
class ServiceManager implements ManagerInterface (View source)
Properties
| protected Application | $app | ||
| protected array | $extensions | ||
| protected ServiceInterface[] | $services | 
Methods
Add an extension to this manager.
An array of handles that have been added with ->extend.
Does this handle exist?
This method MUST return true for anything added with ->extend.
Get the driver for this handle.
Build a service from an abstract.
Returns all the available services.
Loops through the bound services and returns the ones that are active.
Details
        
                            
    __construct(Application $app)
        
    
    Manager constructor.
        
                            
    extend(string $handle, string|callable|ServiceInterface $abstract)
        
    
    Add an extension to this manager.
        
                            string[]
    getExtensions()
        
    
    An array of handles that have been added with ->extend.
        
                            bool
    has($handle)
        
    
    Does this handle exist?
This method MUST return true for anything added with ->extend.
        
                            ServiceInterface|null
    getService($handle, string $version = '')
        
    
    Get the driver for this handle.
        
                        private    ServiceInterface|null
    buildService(string|callable $abstract, string $version = '')
        
    
    Build a service from an abstract.
        
                            ServiceInterface[]
    getAllServices()
        
    
    Returns all the available services.
        
                            ServiceInterface[]
    getActiveServices()
        
    
    Loops through the bound services and returns the ones that are active.