Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
registry ($key) | |
register ($key, $value, $graceful=false) | |
unregister ($key) | |
__destruct () | |
Registry model. Used to manage values in registry
Registry usage as a shared service introduces temporal, hard to detect coupling into system. It's usage should be avoid. Use service classes or data providers instead.
@api
Definition at line 18 of file Registry.php.
__destruct | ( | ) |
Destruct registry items
Definition at line 89 of file Registry.php.
register | ( | $key, | |
$value, | |||
$graceful = false |
|||
) |
Register a new variable
string | $key | |
mixed | $value | |
bool | $graceful |
Definition at line 54 of file Registry.php.
registry | ( | $key | ) |
Retrieve a value from registry by a key
string | $key |
Definition at line 35 of file Registry.php.
unregister | ( | $key | ) |
Unregister a variable from register by key
string | $key |
Definition at line 73 of file Registry.php.