register() public method

public register ( League\Container\ContainerInterface $container, Phprest\Service\Configurable $config ) : void
$container League\Container\ContainerInterface
$config Phprest\Service\Configurable
return void
示例#1
0
 public function testGetter()
 {
     $service = new Service();
     $service->register($this->continer, new Config('anotherLoggerName'));
     $this->assertEquals('anotherLoggerName', $this->serviceLogger()->getName());
 }