getConfiguration() public method

public getConfiguration ( ) : Config
return Config
示例#1
0
 public function testGetters()
 {
     $this->assertInstanceOf('\\Phprest\\Config', $this->app->getConfiguration());
     $this->assertInstanceOf('\\League\\Container\\ContainerInterface', $this->app->getContainer());
     $this->assertInstanceOf('\\Phprest\\Router\\RouteCollection', $this->app->getRouter());
 }
示例#2
0
 /**
  * Returns the DI container.
  *
  * @return \League\Container\ContainerInterface
  */
 protected function getContainer()
 {
     return $this->app->getConfiguration()->getContainer();
 }