This commit is contained in:
2023-04-17 01:29:43 +08:00
parent ac2f2654a3
commit a0cd1182c1
+6 -3
View File
@@ -10,15 +10,18 @@ use Psr\Container\ContainerInterface;
/**
* Class Providers
* @package Kiri\Abstracts
* @property-read ContainerInterface $container
*/
abstract class Providers extends Component implements Provider
{
/**
* @var ContainerInterface
* @return ContainerInterface
*/
#[Container(ContainerInterface::class)]
public ContainerInterface $container;
public function getContainer(): ContainerInterface
{
return \Kiri::getDi();
}
}