Phprest\Config::setLoggerConfig PHP 메소드

setLoggerConfig() 공개 메소드

public setLoggerConfig ( Config $config )
$config Phprest\Service\Logger\Config
    public function setLoggerConfig(LoggerConfig $config)
    {
        $this->loggerConfig = $config;
    }

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());
 }