mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-21 07:35:34 +08:00
add container call method
This commit is contained in:
@@ -101,9 +101,10 @@ interface ContainerInterface extends PsrContainerInterface
|
||||
/**
|
||||
* 调用对应的方法,并自动注入依赖
|
||||
*
|
||||
* @param callable $callback 对应的方法
|
||||
* @param array $parameters 参数
|
||||
* @param callable $callback 对应的方法
|
||||
* @param array $parameters 参数
|
||||
* @param null|string $default_method 默认方法
|
||||
* @return mixed
|
||||
*/
|
||||
public function call(callable $callback, array $parameters = []);
|
||||
public function call(callable $callback, array $parameters = [], string $default_method = null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user