Skip to content

Commit 3f975a2

Browse files
ENGCOM-1064: Registry deprecation #14333
- Merge Pull Request #14333 from vkublytskyi/magento2:registry-deprecation - Merged commits: 1. f3d9209
2 parents c5f460e + f3d9209 commit 3f975a2

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)