Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Drop getConfig() from Application
Browse files Browse the repository at this point in the history
  • Loading branch information
Xerkus committed Feb 8, 2018
1 parent 99a2bf1 commit bf93aa5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
10 changes: 0 additions & 10 deletions src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,16 +129,6 @@ public function __construct(
// @TODO response prototype?
}

/**
* Retrieve the application configuration
*
* @return array|object
*/
public function getConfig()
{
return $this->container->get('config');
}

/**
* Bootstrap the application
*
Expand Down
11 changes: 0 additions & 11 deletions test/ApplicationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,6 @@ public function testContainerIsPopulated()
$this->assertSame($this->container->reveal(), $this->application->getContainer());
}

public function testConfigIsAProxyToContainer()
{
$this->container->get('config')
->shouldBeCalled()
->willReturn(['container' => 'config']);
$appConfig = $this->application->getConfig();
$this->assertEquals(
['container' => 'config'],
$appConfig
);
}

public function testEventsAreEmptyAtFirst()
{
Expand Down

0 comments on commit bf93aa5

Please sign in to comment.