| 1 | <?php |
||
| 10 | class Kernel |
||
| 11 | { |
||
| 12 | private $container; |
||
| 13 | |||
| 14 | public function __construct(Container $container) |
||
| 18 | |||
| 19 | public function getPath(string $path = ''): string |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Resolve from container. |
||
| 26 | * |
||
| 27 | * @param string $class |
||
| 28 | * |
||
| 29 | * @return mixed |
||
| 30 | * @throws \Psr\Container\ContainerExceptionInterface |
||
| 31 | */ |
||
| 32 | public function resolve(string $class) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Get all available drivers. |
||
| 39 | * |
||
| 40 | * @return array |
||
| 41 | * |
||
| 42 | * @throws \RuntimeException |
||
| 43 | * @throws \Psr\Container\ContainerExceptionInterface |
||
| 44 | */ |
||
| 45 | public function getDrivers(): array |
||
| 54 | } |
||
| 55 |