getConfiguration() public method

public getConfiguration ( ) : Config
return Config
Example #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());
 }
Example #2
0
 /**
  * Returns the DI container.
  *
  * @return \League\Container\ContainerInterface
  */
 protected function getContainer()
 {
     return $this->app->getConfiguration()->getContainer();
 }