Skip to content

Commit

Permalink
Allow factories to be configurable. (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmizzell authored Oct 25, 2019
1 parent b9ae229 commit 630a7b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/FactoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ interface FactoryInterface
*
* @return mixed
*/
public function getInstance(string $identifier);
public function getInstance(string $identifier, array $config = []);
}
2 changes: 1 addition & 1 deletion src/Mock/Storage/MemoryFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class MemoryFactory implements FactoryInterface

private $stores;

public function getInstance(string $identifier)
public function getInstance(string $identifier, array $config = [])
{
if (!isset($this->stores[$identifier])) {
$this->stores[$identifier] = new Memory();
Expand Down

0 comments on commit 630a7b5

Please sign in to comment.