The Servicemanager configuration.

This class should be the only one, manipulating instances within the SM inside the API. Changes from outside are proxied to this class.

license New BSD License
link for the canonical source repository
author Ingo Walz
category Zend
package Zend_Service
subpackage ZendServerAPI

 Methods

Constructor

__construct() 

Configure the service manager

configureServiceManager(\Zend\ServiceManager\ServiceManager $serviceManager) 
see \Zend\ServiceManager\ConfigInterface::configureServiceManager()

Parameters

$serviceManager

\Zend\ServiceManager\ServiceManager

Disable logging statically

disableCentralLogging() : void
Static

Set the mock writer to the SM

disableLogging() : void

Enable logging statically

enableCentralLogging() : void
Static

Set a real logger, the default or a costum

enableLogging() : void

Get the config file

getConfigFile() : string
Static

Returns

string

Get the log file

getLogFile() : string

Returns

string

Set the config file

setConfig(string $configFile) 
Static

Parameters

$configFile

string

Set the log file

setLogFile(string $logFile) : void

Parameters

$logFile

string

Set a costum logger

setLogger(\Zend\Log\LoggerInterface $logger) : void

Parameters

$logger

\Zend\Log\LoggerInterface

Configures SM factories

configureFactories(\Zend\ServiceManager\ServiceManager $serviceManager) 

Parameters

$serviceManager

\Zend\ServiceManager\ServiceManager

Configure initializers for the SM

configureInitializers(\Zend\ServiceManager\ServiceManager $serviceManager) : void

Parameters

$serviceManager

\Zend\ServiceManager\ServiceManager

Configure invokables for the SM

configureInvokables(\Zend\ServiceManager\ServiceManager $serviceManager) : void

Parameters

$serviceManager

\Zend\ServiceManager\ServiceManager

 Properties

 

$disableLogging : bool
 

$logFile : string
 

$logger : \Zend\Log\LoggerInterface