| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function register(Container $container): void |
||
| 19 | { |
||
| 20 | $container->set(CacheInterface::class, static function (ContainerInterface $container) { |
||
| 21 | return new FileCache($container->get(Aliases::class)->get('@runtime/cache')); |
||
| 22 | }); |
||
| 23 | |||
| 24 | $container->set(YiiCacheInterface::class, Cache::class); |
||
| 25 | } |
||
| 27 |