变更
This commit is contained in:
@@ -25,7 +25,7 @@ class ContainerParams implements InjectParameterInterface
|
||||
* @return mixed|null
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function dispatch(): mixed
|
||||
public function dispatch(object $class, string $method): mixed
|
||||
{
|
||||
return Container::instance()->get($this->value);
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ class ServiceParams implements InjectParameterInterface
|
||||
* @return mixed|null
|
||||
* @throws Exception
|
||||
*/
|
||||
public function dispatch(): mixed
|
||||
public function dispatch(object $class, string $method): mixed
|
||||
{
|
||||
$service = Container::instance()->get(LocalService::class);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user