/** * 创建事件调用方案 * * @param string $callback 回调 * @param \CatLib\Container\Container $container 容器 * @return callable */ protected function createClassCallable($callback, $container) { list($class, $method) = $this->parseClassCallable($callback); return [$container->make($class), $method]; }
/** * 将指定服务归类到一个组中 * @param array|mixed $groups 组 * @return $this */ public function group($groups) { $this->container->group($this->concrete, $groups); return $this; }