register() public méthode

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