register() public method

public register ( League\Container\ContainerInterface $container, Phprest\Service\Configurable $config ) : void
$container League\Container\ContainerInterface
$config Phprest\Service\Configurable
return void
Example #1
0
 public function setUp()
 {
     $this->container = new Container();
     $service = new Service();
     $service->register($this->container, new Config(true));
 }
Example #2
0
 public function testGetter()
 {
     $service = new Service();
     $service->register($this->container, $this->hateoasConfig);
     $this->assertInstanceOf('\\Hateoas\\Hateoas', $this->serviceHateoas());
 }