Skip to content

Commit

Permalink
Merge bcd81c2 into c109437
Browse files Browse the repository at this point in the history
  • Loading branch information
omarkdev committed Oct 8, 2018
2 parents c109437 + bcd81c2 commit 4d33123
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ public function __construct(
*
* @throws DependencyException Error while resolving the entry.
* @throws NotFoundException No entry found for the given name.
* @throws InvalidDefinition
* @return mixed
*/
public function get($name)
Expand All @@ -145,6 +146,7 @@ public function get($name)
* @param string $name
*
* @return Definition|null
* @throws InvalidDefinition
*/
private function getDefinition($name)
{
Expand Down Expand Up @@ -172,6 +174,7 @@ private function getDefinition($name)
* @throws InvalidArgumentException The name parameter must be of type string.
* @throws DependencyException Error while resolving the entry.
* @throws NotFoundException No entry found for the given name.
* @throws InvalidDefinition
* @return mixed
*/
public function make($name, array $parameters = [])
Expand Down Expand Up @@ -202,6 +205,7 @@ public function make($name, array $parameters = [])
* @param string $name Entry name or a class name.
*
* @throws InvalidArgumentException The name parameter must be of type string.
* @throws InvalidDefinition
* @return bool
*/
public function has($name)
Expand Down Expand Up @@ -230,7 +234,7 @@ public function has($name)
*
* @param object $instance Object to perform injection upon
* @throws InvalidArgumentException
* @throws DependencyException Error while injecting dependencies
* @throws InvalidDefinition
* @return object $instance Returns the same instance
*/
public function injectOn($instance)
Expand Down Expand Up @@ -262,6 +266,9 @@ public function injectOn($instance)
* The array can also contain DI definitions, e.g. DI\get().
*
* @return mixed Result of the function.
* @throws \Invoker\Exception\InvocationException
* @throws \Invoker\Exception\NotCallableException
* @throws \Invoker\Exception\NotEnoughParametersException
*/
public function call($callable, array $parameters = [])
{
Expand Down Expand Up @@ -311,6 +318,7 @@ public function getKnownEntryNames() : array
*
* @param string $name Entry name
*
* @return string
* @throws InvalidDefinition
* @throws NotFoundException
*/
Expand All @@ -332,6 +340,7 @@ public function debugEntry(string $name) : string
* Get formatted entry type.
*
* @param mixed $entry
* @return string
*/
private function getEntryType($entry) : string
{
Expand Down Expand Up @@ -359,8 +368,11 @@ private function getEntryType($entry) : string
*
* Checks for circular dependencies while resolving the definition.
*
* @throws DependencyException Error while resolving the entry.
* @param Definition $definition
* @param array $parameters
* @return mixed
* @throws DependencyException Error while resolving the entry.
* @throws InvalidDefinition
*/
private function resolveDefinition(Definition $definition, array $parameters = [])
{
Expand Down

0 comments on commit 4d33123

Please sign in to comment.