Skip to content

Commit

Permalink
Update method documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
gigili committed Jun 3, 2022
1 parent 953397e commit 9655950
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,14 @@ private function setup_callback(Closure|string|array $callback) : mixed {
return $callback;
}

/**
* Method used for handling dependency injection
*
* @param string $class Name of the class for which to auto-inject arguments
* @param array $arguments List of arguments that will be passed alongside of auto-injected ones
*
* @return array Return a new list of arguments that holds manually provided and auto-injected arguments
*/
private function dependency_injection(string $class, array $arguments = []) : array {
try {
$reflection = new ReflectionClass($class);
Expand Down

0 comments on commit 9655950

Please sign in to comment.