{"action":"created","issue":{"url":"https://api.github.com/repos/kamilsk/CilexServiceProviders/issues/79","labels_url":"https://api.github.com/repos/kamilsk/CilexServiceProviders/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/kamilsk/CilexServiceProviders/issues/79/comments","events_url":"https://api.github.com/repos/kamilsk/CilexServiceProviders/issues/79/events","html_url":"https://github.com/kamilsk/CilexServiceProviders/issues/79","id":124046269,"number":79,"title":"new getDbConnection functionality","user":{"login":"kamilsk","id":1165416,"avatar_url":"https://avatars.githubusercontent.com/u/1165416?v=3","gravatar_id":"","url":"https://api.github.com/users/kamilsk","html_url":"https://github.com/kamilsk","followers_url":"https://api.github.com/users/kamilsk/followers","following_url":"https://api.github.com/users/kamilsk/following{/other_user}","gists_url":"https://api.github.com/users/kamilsk/gists{/gist_id}","starred_url":"https://api.github.com/users/kamilsk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamilsk/subscriptions","organizations_url":"https://api.github.com/users/kamilsk/orgs","repos_url":"https://api.github.com/users/kamilsk/repos","events_url":"https://api.github.com/users/kamilsk/events{/privacy}","received_events_url":"https://api.github.com/users/kamilsk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kamilsk/CilexServiceProviders/labels/type:feature","name":"type:feature","color":"006b75"}],"state":"open","locked":false,"assignee":{"login":"kamilsk","id":1165416,"avatar_url":"https://avatars.githubusercontent.com/u/1165416?v=3","gravatar_id":"","url":"https://api.github.com/users/kamilsk","html_url":"https://github.com/kamilsk","followers_url":"https://api.github.com/users/kamilsk/followers","following_url":"https://api.github.com/users/kamilsk/following{/other_user}","gists_url":"https://api.github.com/users/kamilsk/gists{/gist_id}","starred_url":"https://api.github.com/users/kamilsk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamilsk/subscriptions","organizations_url":"https://api.github.com/users/kamilsk/orgs","repos_url":"https://api.github.com/users/kamilsk/repos","events_url":"https://api.github.com/users/kamilsk/events{/privacy}","received_events_url":"https://api.github.com/users/kamilsk/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/kamilsk/CilexServiceProviders/milestones/8","html_url":"https://github.com/kamilsk/CilexServiceProviders/milestones/2.1","labels_url":"https://api.github.com/repos/kamilsk/CilexServiceProviders/milestones/8/labels","id":1471306,"number":8,"title":"2.1","description":"Support new Monolog ConfigResolver features. Up code quality.","creator":{"login":"kamilsk","id":1165416,"avatar_url":"https://avatars.githubusercontent.com/u/1165416?v=3","gravatar_id":"","url":"https://api.github.com/users/kamilsk","html_url":"https://github.com/kamilsk","followers_url":"https://api.github.com/users/kamilsk/followers","following_url":"https://api.github.com/users/kamilsk/following{/other_user}","gists_url":"https://api.github.com/users/kamilsk/gists{/gist_id}","starred_url":"https://api.github.com/users/kamilsk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamilsk/subscriptions","organizations_url":"https://api.github.com/users/kamilsk/orgs","repos_url":"https://api.github.com/users/kamilsk/repos","events_url":"https://api.github.com/users/kamilsk/events{/privacy}","received_events_url":"https://api.github.com/users/kamilsk/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":0,"state":"open","created_at":"2015-12-22T15:07:12Z","updated_at":"2015-12-28T10:08:41Z","due_on":"2016-01-30T21:00:00Z","closed_at":null},"comments":1,"created_at":"2015-12-28T10:07:05Z","updated_at":"2015-12-28T11:40:30Z","closed_at":null,"body":"`Command::getDbConnection('alias')`"},"comment":{"url":"https://api.github.com/repos/kamilsk/CilexServiceProviders/issues/comments/167550148","html_url":"https://github.com/kamilsk/CilexServiceProviders/issues/79#issuecomment-167550148","issue_url":"https://api.github.com/repos/kamilsk/CilexServiceProviders/issues/79","id":167550148,"user":{"login":"kamilsk","id":1165416,"avatar_url":"https://avatars.githubusercontent.com/u/1165416?v=3","gravatar_id":"","url":"https://api.github.com/users/kamilsk","html_url":"https://github.com/kamilsk","followers_url":"https://api.github.com/users/kamilsk/followers","following_url":"https://api.github.com/users/kamilsk/following{/other_user}","gists_url":"https://api.github.com/users/kamilsk/gists{/gist_id}","starred_url":"https://api.github.com/users/kamilsk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamilsk/subscriptions","organizations_url":"https://api.github.com/users/kamilsk/orgs","repos_url":"https://api.github.com/users/kamilsk/repos","events_url":"https://api.github.com/users/kamilsk/events{/privacy}","received_events_url":"https://api.github.com/users/kamilsk/received_events","type":"User","site_admin":false},"created_at":"2015-12-28T11:40:30Z","updated_at":"2015-12-28T11:40:30Z","body":"draw:\r\n\r\n```php\r\n    public function getDbConnection($alias = null)\r\n    {\r\n        if ($alias) {\r\n            /** @var \\Pimple $connections */\r\n            $connections = $this->getService('dbs');\r\n            if ($connections->offsetExists($alias)) {\r\n                return $connections->offsetGet($alias);\r\n            }\r\n            throw new \\RuntimeException('Database connection is not exists.');\r\n        }\r\n        return parent::getDbConnection();\r\n    }\r\n```"}}