Phprest\Config::setLoggerService PHP Méthode

setLoggerService() public méthode

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

Usage Example

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