Phprest\Config::setLoggerService PHP Method

setLoggerService() public method

public setLoggerService ( Service $service )
$service Phprest\Service\Logger\Service
    public function setLoggerService(LoggerService $service)
    {
        $this->loggerService = $service;
    }

Usage Example

示例#1
0
 public function testLoggerGetterSetter()
 {
     $config = new Config('phprest', 1, true);
     $config->setLoggerConfig(new LoggerConfig('test'));
     $config->setLoggerService(new LoggerService());
     $this->assertInstanceOf('\\Phprest\\Service\\Logger\\Config', $config->getLoggerConfig());
     $this->assertInstanceOf('\\Phprest\\Service\\Logger\\Service', $config->getLoggerService());
 }