/
spirzen
/
it-code-examples
Обзор
Документация
Войти
/
spirzen
/
it-code-examples
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
examples/php/php-507-143-014/main.php
20 строк
484 B
Spirzen
Code migration pack
09 июн 2026, 01:41
09 июн 2026, 01:41
cebc284
Код
Авторство
О чём код?
class CacheManager { protected $app; protected $stores = []; public function store($name = null) { $name = $name ?: $this->getDefaultDriver(); if (!isset($this->stores[$name])) { $this->stores[$name] = $this->resolve($name); } return $this->stores[$name]; } protected function resolve($name) { $config = $this->getConfig($name); return $this->createAdapter($config['driver'], $config); } }