1 | <?php |
||
16 | final class CachedInjectorFactory |
||
17 | { |
||
18 | /** @var array<string, InjectorInterface> */ |
||
19 | private static $injectors = []; |
||
20 | |||
21 | private const KEY_INJECTOR = 'injector'; |
||
22 | |||
23 | private function __construct() |
||
26 | |||
27 | /** |
||
28 | * @param callable(): AbstractModule $modules |
||
29 | * @param array<class-string> $savedSingletons |
||
|
|||
30 | */ |
||
31 | public static function getInstance(string $injectorId, string $scriptDir, callable $modules, ?CacheProvider $cache = null, array $savedSingletons = []): InjectorInterface |
||
46 | |||
47 | /** |
||
48 | * @param callable(): AbstractModule $modules |
||
49 | * @param array<class-string> $savedSingletons |
||
50 | */ |
||
51 | private static function getInjector(callable $modules, string $scriptDir, array $savedSingletons): InjectorInterface |
||
60 | |||
61 | private static function getCache(string $injectorId, ?CacheProvider $cache): CacheInterface |
||
69 | } |
||
70 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.