1: | <?php declare(strict_types=1); |
2: | |
3: | namespace Salient\Contract\Container; |
4: | |
5: | /** |
6: | * For classes that need to know when they are instantiated by a container |
7: | * |
8: | * @api |
9: | */ |
10: | interface ContainerAwareInterface |
11: | { |
12: | /** |
13: | * Called after the instance is created by a container |
14: | */ |
15: | public function setContainer(ContainerInterface $container): void; |
16: | } |
17: |