Skip to content

Commit

Permalink
add a method to get all storages.
Browse files Browse the repository at this point in the history
  • Loading branch information
makasim committed Mar 13, 2017
1 parent c975a77 commit 47d7893
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Registry.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ public function __construct(array $storages, array $repositories)
$this->repositories = $repositories;
}

/**
* @return Storage[]|array
*/
public function getStorages()
{
return $this->storages;
}

/**
* @param object|string $modelOrClass
*
Expand Down

0 comments on commit 47d7893

Please sign in to comment.