Phprest\Service\Configurable::getServiceName PHP Method

getServiceName() public static method

public static getServiceName ( ) : string
return string
    public static function getServiceName();

Usage Example

Example #1
0
 /**
  * @param ContainerInterface $container
  * @param Configurable $config
  *
  * @return void
  */
 public function register(ContainerInterface $container, Configurable $config)
 {
     if (!$config instanceof Config) {
         throw new \InvalidArgumentException('Wrong Config object');
     }
     $logger = new Logger($config->name, $config->handlers);
     $container->add($config->getServiceName(), $logger);
 }
All Usage Examples Of Phprest\Service\Configurable::getServiceName
Configurable