Phprest\Config::setLoggerConfig PHP Method

setLoggerConfig() public method

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

Usage Example

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