Skip to content

Commit

Permalink
Add call static helper method to service context
Browse files Browse the repository at this point in the history
  • Loading branch information
devosc committed Aug 15, 2017
1 parent 8dedc5a commit 11cd7f9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Facade/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,14 @@ static function context($config = [], callable $provider = null, $scope = true)
{
return static::bind(new App($config, $provider, $scope));
}

/**
* @param $name
* @param array $args
* @return mixed
*/
static function __callStatic($name, array $args)
{
return static::service()->call($name, $args);
}
}

0 comments on commit 11cd7f9

Please sign in to comment.