-
Notifications
You must be signed in to change notification settings - Fork 39
Registry
AntonShevchuk edited this page Oct 13, 2014
·
7 revisions
Реализация реестра, для "замены" глобальных переменных
Можно глобально занести некие данные из конфигурационного файла:
// config file registry.php
return array(
"foo" => "bar",
"answer" => 42
)
с версии 0.6.0 изменился способ вызова - теперь только через Proxy
Реестр представляет собой реализацию примеси Container, обёрнутый в соответсвующий Proxy. Пример использования:
use \Bluz\Proxy\Registry;
// create key/value
Registry::set('key', 'value');
// get value from registry
echo Registry::get('key');
Acl
Application
Auth
Cache
Common
— Exception
— Collection
— Container
— Helper
— Options
— Singleton
Config
Controller
— Data
— Mapper
—— Crud
—— Rest
— Reflection
Crud
— Crud Table
Db
— Row
— Table
— Relations
— Query
Debug
EventManager
Grid
Http
Layout
Logger
Mailer
Messages
Nil
Proxy
Registry
Request
Response
Router
Session
Translator
Validator
View