Skip to content

Commit f3d9209

Browse files
author
Volodymyr Kublytskyi
committed
Registry deprecation
1 parent c5f460e commit f3d9209

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/internal/Magento/Framework/Registry.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
/**
99
* Registry model. Used to manage values in registry
1010
*
11+
* Registry usage as a shared service introduces temporal, hard to detect coupling into system.
12+
* It's usage should be avoid. Use service classes or data providers instead.
13+
*
1114
* @api
15+
* @deprecated
1216
*/
1317
class Registry
1418
{
@@ -24,6 +28,8 @@ class Registry
2428
*
2529
* @param string $key
2630
* @return mixed
31+
*
32+
* @deprecated
2733
*/
2834
public function registry($key)
2935
{
@@ -41,6 +47,8 @@ public function registry($key)
4147
* @param bool $graceful
4248
* @return void
4349
* @throws \RuntimeException
50+
*
51+
* @deprecated
4452
*/
4553
public function register($key, $value, $graceful = false)
4654
{
@@ -58,6 +66,8 @@ public function register($key, $value, $graceful = false)
5866
*
5967
* @param string $key
6068
* @return void
69+
*
70+
* @deprecated
6171
*/
6272
public function unregister($key)
6373
{

0 commit comments

Comments
 (0)