Default implementation of dependency injection.
\Hubleto\Framework\DependencyInjection
| Implements | `ContainerInterface` |
Properties
### ☍ serviceProviders
```php
private static array
$serviceProviders
```
[Description for $serviceProviders]
### ☍ services
```php
private static array $services
```
Methods
ƒ get
public get(mixed $id): mixed
Parameters
| Parameter |
Type |
Description |
$id |
mixed |
|
ƒ has
public has(mixed $id): bool
Parameters
| Parameter |
Type |
Description |
$id |
mixed |
|
ƒ setServiceProvider
public static setServiceProvider(string $service, string $provider): void
- This method is static.
Parameters
| Parameter |
Type |
Description |
$service |
string |
|
$provider |
string |
|
ƒ setServiceProviders
public static setServiceProviders(array $providers): void
- This method is static.
Parameters
| Parameter |
Type |
Description |
$providers |
array |
|
ƒ create
public static create(string $service, bool $noSingleton = false): mixed
- This method is static.
Parameters
| Parameter |
Type |
Description |
$service |
string |
|
$noSingleton |
bool |
|