{"action":"opened","issue":{"url":"https://api.github.com/repos/phalcon/cphalcon/issues/10115","labels_url":"https://api.github.com/repos/phalcon/cphalcon/issues/10115/labels{/name}","comments_url":"https://api.github.com/repos/phalcon/cphalcon/issues/10115/comments","events_url":"https://api.github.com/repos/phalcon/cphalcon/issues/10115/events","html_url":"https://github.com/phalcon/cphalcon/issues/10115","id":69787430,"number":10115,"title":"[2.0.0]Registry","user":{"login":"eclipse88","id":3451117,"avatar_url":"https://avatars.githubusercontent.com/u/3451117?v=3","gravatar_id":"","url":"https://api.github.com/users/eclipse88","html_url":"https://github.com/eclipse88","followers_url":"https://api.github.com/users/eclipse88/followers","following_url":"https://api.github.com/users/eclipse88/following{/other_user}","gists_url":"https://api.github.com/users/eclipse88/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipse88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipse88/subscriptions","organizations_url":"https://api.github.com/users/eclipse88/orgs","repos_url":"https://api.github.com/users/eclipse88/repos","events_url":"https://api.github.com/users/eclipse88/events{/privacy}","received_events_url":"https://api.github.com/users/eclipse88/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-21T08:55:13Z","updated_at":"2015-04-21T08:55:13Z","closed_at":null,"body":"Not supporting this very useful functionality from 1.3.4\r\n```php\r\n$di->set('registry', function() {\r\n    return new Phalcon\\Registry();\r\n}, true);\r\n\r\n//not working in 2.0.0\r\n$this->registry->user = [];\r\n$this->registry->user['id'] = 1;\r\n\r\n//must doing this\r\n$this->registry->user = ['id' => 1];\r\n```\r\nand if you collecting data from entire application you need to do this:\r\n``` php\r\n$data = [];\r\nif($this->registry->offsetExists('data'){//by the way isset($this->registry->data) always return false in 2.0.0\r\n     $data = $this->registry->data;\r\n}\r\n$data['asd'] = 'asd';\r\n$this->registry->data = $data;\r\n\r\n//instead\r\n$this->registry->data['asd'];\r\n```\r\n"}}