Phprest\Service\Logger\Config::getServiceName PHP Method

getServiceName() public static method

public static getServiceName ( ) : string
return string
    public static function getServiceName()
    {
        return 'logger';
    }

Usage Example

Example #1
0
 public function testInstansiation()
 {
     $service = new Service();
     $service->register($this->continer, new Config('sampleLoggerName'));
     $loggerService = $this->continer->get(Config::getServiceName());
     $this->assertEquals('sampleLoggerName', $loggerService->getName());
 }
All Usage Examples Of Phprest\Service\Logger\Config::getServiceName