Registry

link Default registry

$example = \T2\Registry\Registry::get_instance(); // "default" instance
$example->set('key', 'value');
print_r( $example->get_all());
[
	'key' => 'value'
]

$example2 = \T2\Registry\Registry::get:instance( 'config' );
print_r( $example2->get_all() );
[]