zhamao-framework/docs/api/ZM/Container/ContainerServicesProvider.md

135 lines
2.1 KiB
Markdown
Raw Normal View History

2022-05-28 09:33:43 +00:00
# ZM\Container\ContainerServicesProvider
## registerServices
```php
2022-08-22 07:39:44 +00:00
public function registerServices(string $scope, mixed $params): void
2022-05-28 09:33:43 +00:00
```
### 描述
2022-08-22 07:39:44 +00:00
作者很懒,什么也没有说
2022-05-28 09:33:43 +00:00
### 参数
| 名称 | 类型 | 描述 |
| -------- | ---- | ----------- |
2022-08-22 07:39:44 +00:00
| scope | string | |
| params | mixed | |
2022-05-28 09:33:43 +00:00
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| void | |
## cleanup
```php
public function cleanup(): void
```
### 描述
2022-08-22 07:39:44 +00:00
作者很懒,什么也没有说
2022-05-28 09:33:43 +00:00
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| void | |
## registerGlobalServices
```php
public function registerGlobalServices(ZM\Container\ContainerInterface $container): void
```
### 描述
2022-08-22 07:39:44 +00:00
作者很懒,什么也没有说
2022-05-28 09:33:43 +00:00
### 参数
| 名称 | 类型 | 描述 |
| -------- | ---- | ----------- |
| container | ZM\Container\ContainerInterface | |
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| void | |
## registerRequestServices
```php
2022-08-22 07:39:44 +00:00
public function registerRequestServices(ZM\Container\ContainerInterface $container, OneBot\Driver\Event\Http\HttpRequestEvent $event): void
2022-05-28 09:33:43 +00:00
```
### 描述
2022-08-22 07:39:44 +00:00
作者很懒,什么也没有说
2022-05-28 09:33:43 +00:00
### 参数
| 名称 | 类型 | 描述 |
| -------- | ---- | ----------- |
| container | ZM\Container\ContainerInterface | |
2022-08-22 07:39:44 +00:00
| event | OneBot\Driver\Event\Http\HttpRequestEvent | |
2022-05-28 09:33:43 +00:00
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| void | |
## registerMessageServices
```php
public function registerMessageServices(ZM\Container\ContainerInterface $container): void
```
### 描述
2022-08-22 07:39:44 +00:00
作者很懒,什么也没有说
2022-05-28 09:33:43 +00:00
### 参数
| 名称 | 类型 | 描述 |
| -------- | ---- | ----------- |
| container | ZM\Container\ContainerInterface | |
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| void | |
## registerConnectionServices
```php
public function registerConnectionServices(ZM\Container\ContainerInterface $container): void
```
### 描述
2022-08-22 07:39:44 +00:00
作者很懒,什么也没有说
2022-05-28 09:33:43 +00:00
### 参数
| 名称 | 类型 | 描述 |
| -------- | ---- | ----------- |
| container | ZM\Container\ContainerInterface | |
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| void | |