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
ファイル: ConfigTest.php プロジェクト: phprest/phprest
 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());
 }