{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/15436","repository_url":"https://api.github.com/repos/yiisoft/yii2","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/15436/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/15436/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/15436/events","html_url":"https://github.com/yiisoft/yii2/issues/15436","id":285201598,"number":15436,"title":"Integrate `yiisoft/di`","user":{"login":"klimov-paul","id":1482054,"avatar_url":"https://avatars3.githubusercontent.com/u/1482054?v=4","gravatar_id":"","url":"https://api.github.com/users/klimov-paul","html_url":"https://github.com/klimov-paul","followers_url":"https://api.github.com/users/klimov-paul/followers","following_url":"https://api.github.com/users/klimov-paul/following{/other_user}","gists_url":"https://api.github.com/users/klimov-paul/gists{/gist_id}","starred_url":"https://api.github.com/users/klimov-paul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klimov-paul/subscriptions","organizations_url":"https://api.github.com/users/klimov-paul/orgs","repos_url":"https://api.github.com/users/klimov-paul/repos","events_url":"https://api.github.com/users/klimov-paul/events{/privacy}","received_events_url":"https://api.github.com/users/klimov-paul/received_events","type":"User","site_admin":false},"labels":[{"id":116381991,"url":"https://api.github.com/repos/yiisoft/yii2/labels/severity:BC%20breaking","name":"severity:BC breaking","color":"eb6420","default":false},{"id":33520805,"url":"https://api.github.com/repos/yiisoft/yii2/labels/type:task","name":"type:task","color":"DDDDDD","default":false}],"state":"open","locked":false,"assignee":{"login":"samdark","id":47294,"avatar_url":"https://avatars2.githubusercontent.com/u/47294?v=4","gravatar_id":"","url":"https://api.github.com/users/samdark","html_url":"https://github.com/samdark","followers_url":"https://api.github.com/users/samdark/followers","following_url":"https://api.github.com/users/samdark/following{/other_user}","gists_url":"https://api.github.com/users/samdark/gists{/gist_id}","starred_url":"https://api.github.com/users/samdark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samdark/subscriptions","organizations_url":"https://api.github.com/users/samdark/orgs","repos_url":"https://api.github.com/users/samdark/repos","events_url":"https://api.github.com/users/samdark/events{/privacy}","received_events_url":"https://api.github.com/users/samdark/received_events","type":"User","site_admin":false},"assignees":[{"login":"samdark","id":47294,"avatar_url":"https://avatars2.githubusercontent.com/u/47294?v=4","gravatar_id":"","url":"https://api.github.com/users/samdark","html_url":"https://github.com/samdark","followers_url":"https://api.github.com/users/samdark/followers","following_url":"https://api.github.com/users/samdark/following{/other_user}","gists_url":"https://api.github.com/users/samdark/gists{/gist_id}","starred_url":"https://api.github.com/users/samdark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samdark/subscriptions","organizations_url":"https://api.github.com/users/samdark/orgs","repos_url":"https://api.github.com/users/samdark/repos","events_url":"https://api.github.com/users/samdark/events{/privacy}","received_events_url":"https://api.github.com/users/samdark/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/yiisoft/yii2/milestones/22","html_url":"https://github.com/yiisoft/yii2/milestone/22","labels_url":"https://api.github.com/repos/yiisoft/yii2/milestones/22/labels","id":1962396,"number":22,"title":"2.1.0","description":"","creator":{"login":"samdark","id":47294,"avatar_url":"https://avatars2.githubusercontent.com/u/47294?v=4","gravatar_id":"","url":"https://api.github.com/users/samdark","html_url":"https://github.com/samdark","followers_url":"https://api.github.com/users/samdark/followers","following_url":"https://api.github.com/users/samdark/following{/other_user}","gists_url":"https://api.github.com/users/samdark/gists{/gist_id}","starred_url":"https://api.github.com/users/samdark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samdark/subscriptions","organizations_url":"https://api.github.com/users/samdark/orgs","repos_url":"https://api.github.com/users/samdark/repos","events_url":"https://api.github.com/users/samdark/events{/privacy}","received_events_url":"https://api.github.com/users/samdark/received_events","type":"User","site_admin":false},"open_issues":232,"closed_issues":108,"state":"open","created_at":"2016-08-25T07:42:19Z","updated_at":"2018-03-01T11:15:58Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2017-12-30T12:59:36Z","updated_at":"2018-03-01T16:57:31Z","closed_at":null,"author_association":"MEMBER","body":"DI container from [yiisoft/di](https://github.com/yiisoft/di) should be integrated into main repo replacing old DI classes before 2.1 release.\r\nThe location and internal code of the following classes should be rewised:\r\n\r\n- yii\\di\\Instance\r\n- yii\\di\\ServiceLocator\r\n\r\nKeep in mind that namespace `yii\\di` is taken by `yiisoft/di` package. While Composer allows having multiple folders for the same namespace, I would like to avoid such approach as it will make code navigation difficult.\r\n\r\nPR for ['class' keyword fallback](https://github.com/yiisoft/di/pull/4) should be considered to be handled at `yiisoft/yii` instead of `yiisoft/di`. If there will be a graceful way to provide fallback from `__class` to `class` it could be done - if not - no fallback will be provided."},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/369657877","html_url":"https://github.com/yiisoft/yii2/issues/15436#issuecomment-369657877","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/15436","id":369657877,"user":{"login":"SilverFire","id":4499203,"avatar_url":"https://avatars2.githubusercontent.com/u/4499203?v=4","gravatar_id":"","url":"https://api.github.com/users/SilverFire","html_url":"https://github.com/SilverFire","followers_url":"https://api.github.com/users/SilverFire/followers","following_url":"https://api.github.com/users/SilverFire/following{/other_user}","gists_url":"https://api.github.com/users/SilverFire/gists{/gist_id}","starred_url":"https://api.github.com/users/SilverFire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SilverFire/subscriptions","organizations_url":"https://api.github.com/users/SilverFire/orgs","repos_url":"https://api.github.com/users/SilverFire/repos","events_url":"https://api.github.com/users/SilverFire/events{/privacy}","received_events_url":"https://api.github.com/users/SilverFire/received_events","type":"User","site_admin":false},"created_at":"2018-03-01T16:57:31Z","updated_at":"2018-03-01T16:57:31Z","author_association":"MEMBER","body":"I'd suggest to implement `__construct()` parameter support as well.\r\n\r\n1. It is consistent with config format agreed for `yiisoft/di`\r\n2. While `yiisoft/di` is a bit raw and not integrated in Yii 2.1, this change will help us to write configs that will work after `yiisoft/di` adoption."}}
{"actor":{"display_login":"SilverFire"}}