2022-01-09 03:50:38 +08:00
|
|
|
<?php
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
namespace Kiri\Abstracts;
|
|
|
|
|
|
|
|
|
|
|
2023-07-31 23:09:00 +08:00
|
|
|
use Kiri;
|
2023-04-16 02:01:27 +08:00
|
|
|
use Psr\Container\ContainerInterface;
|
2022-06-22 16:29:42 +08:00
|
|
|
|
2022-01-09 03:50:38 +08:00
|
|
|
/**
|
|
|
|
|
* Class Providers
|
|
|
|
|
* @package Kiri\Abstracts
|
2023-04-17 01:29:43 +08:00
|
|
|
* @property-read ContainerInterface $container
|
2022-01-09 03:50:38 +08:00
|
|
|
*/
|
|
|
|
|
abstract class Providers extends Component implements Provider
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
2022-06-22 16:29:42 +08:00
|
|
|
/**
|
2023-04-17 01:29:43 +08:00
|
|
|
* @return ContainerInterface
|
2022-06-22 16:29:42 +08:00
|
|
|
*/
|
2023-04-17 01:29:43 +08:00
|
|
|
public function getContainer(): ContainerInterface
|
|
|
|
|
{
|
2023-07-31 23:09:00 +08:00
|
|
|
return Kiri::getDi();
|
2023-04-17 01:29:43 +08:00
|
|
|
}
|
2022-06-22 16:29:42 +08:00
|
|
|
|
2022-01-09 03:50:38 +08:00
|
|
|
}
|