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