| 1 |
<?php |
| 2 |
|
| 3 |
namespace SyncBasalam\Infrastructure\Container; |
| 4 |
|
| 5 |
defined('ABSPATH') || exit; |
| 6 |
|
| 7 |
interface ContainerInterface |
| 8 |
{ |
| 9 |
public function bind(string $id, callable $factory): void; |
| 10 |
|
| 11 |
public function singleton(string $id, callable $factory): void; |
| 12 |
|
| 13 |
public function alias(string $alias, string $id): void; |
| 14 |
|
| 15 |
public function has(string $id): bool; |
| 16 |
|
| 17 |
public function get(string $id); |
| 18 |
|
| 19 |
public function provider(ServiceProviderInterface $provider): void; |
| 20 |
} |
| 21 |
|