register() публичный Метод

public register ( League\Container\ContainerInterface $container, Phprest\Service\Configurable $config ) : void
$container League\Container\ContainerInterface
$config Phprest\Service\Configurable
Результат void
Пример #1
0
 public function testGetter()
 {
     $service = new Service();
     $service->register($this->continer, new Config('anotherLoggerName'));
     $this->assertEquals('anotherLoggerName', $this->serviceLogger()->getName());
 }