Skip to content

Commit 11cd7f9

Browse files
committed
Add call static helper method to service context
1 parent 8dedc5a commit 11cd7f9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Facade/Service.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,14 @@ static function context($config = [], callable $provider = null, $scope = true)
4444
{
4545
return static::bind(new App($config, $provider, $scope));
4646
}
47+
48+
/**
49+
* @param $name
50+
* @param array $args
51+
* @return mixed
52+
*/
53+
static function __callStatic($name, array $args)
54+
{
55+
return static::service()->call($name, $args);
56+
}
4757
}

0 commit comments

Comments
 (0)