Skip to content

Commit

Permalink
Update get function
Browse files Browse the repository at this point in the history
  • Loading branch information
brendt committed May 31, 2024
1 parent 83288d8 commit 7b39aca
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@ function ll(mixed ...$input): void
/**
* @template TClassName
* @param class-string<TClassName> $className
* @param string|null $tag
* @param mixed ...$params
* @return TClassName
*/
function get(string $className): object
function get(string $className, ?string $tag = null, mixed ...$params): object
{
$container = GenericContainer::instance();

return $container->get($className);
return $container->get($className, $tag, ...$params);
}

function event(object $event): void
Expand Down

0 comments on commit 7b39aca

Please sign in to comment.