{"action":"created","issue":{"url":"https://api.github.com/repos/Artiomtb/MindKBlog/issues/2","labels_url":"https://api.github.com/repos/Artiomtb/MindKBlog/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Artiomtb/MindKBlog/issues/2/comments","events_url":"https://api.github.com/repos/Artiomtb/MindKBlog/issues/2/events","html_url":"https://github.com/Artiomtb/MindKBlog/pull/2","id":130139264,"number":2,"title":"Service: implemented Service class","user":{"login":"Artiomtb","id":6322878,"avatar_url":"https://avatars.githubusercontent.com/u/6322878?v=3","gravatar_id":"","url":"https://api.github.com/users/Artiomtb","html_url":"https://github.com/Artiomtb","followers_url":"https://api.github.com/users/Artiomtb/followers","following_url":"https://api.github.com/users/Artiomtb/following{/other_user}","gists_url":"https://api.github.com/users/Artiomtb/gists{/gist_id}","starred_url":"https://api.github.com/users/Artiomtb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Artiomtb/subscriptions","organizations_url":"https://api.github.com/users/Artiomtb/orgs","repos_url":"https://api.github.com/users/Artiomtb/repos","events_url":"https://api.github.com/users/Artiomtb/events{/privacy}","received_events_url":"https://api.github.com/users/Artiomtb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-31T15:28:28Z","updated_at":"2016-01-31T20:45:37Z","closed_at":"2016-01-31T19:22:18Z","pull_request":{"url":"https://api.github.com/repos/Artiomtb/MindKBlog/pulls/2","html_url":"https://github.com/Artiomtb/MindKBlog/pull/2","diff_url":"https://github.com/Artiomtb/MindKBlog/pull/2.diff","patch_url":"https://github.com/Artiomtb/MindKBlog/pull/2.patch"},"body":"@dimmask, please, check my DI implementation.\r\n\r\nImplemented logic of Dependency Injection. Added methods for set and multiple set dependencies, method for get class by service name. Also added method that returns all service names"},"comment":{"url":"https://api.github.com/repos/Artiomtb/MindKBlog/issues/comments/177605614","html_url":"https://github.com/Artiomtb/MindKBlog/pull/2#issuecomment-177605614","issue_url":"https://api.github.com/repos/Artiomtb/MindKBlog/issues/2","id":177605614,"user":{"login":"Artiomtb","id":6322878,"avatar_url":"https://avatars.githubusercontent.com/u/6322878?v=3","gravatar_id":"","url":"https://api.github.com/users/Artiomtb","html_url":"https://github.com/Artiomtb","followers_url":"https://api.github.com/users/Artiomtb/followers","following_url":"https://api.github.com/users/Artiomtb/following{/other_user}","gists_url":"https://api.github.com/users/Artiomtb/gists{/gist_id}","starred_url":"https://api.github.com/users/Artiomtb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Artiomtb/subscriptions","organizations_url":"https://api.github.com/users/Artiomtb/orgs","repos_url":"https://api.github.com/users/Artiomtb/repos","events_url":"https://api.github.com/users/Artiomtb/events{/privacy}","received_events_url":"https://api.github.com/users/Artiomtb/received_events","type":"User","site_admin":false},"created_at":"2016-01-31T20:45:37Z","updated_at":"2016-01-31T20:45:37Z","body":"@dimmask Дима, вопрос - я хочу реализовать подгрузку через DI с помощью внешнего конфига - как сделано с routes. Для этого в config.php хочу добавить что-то вроде:\r\n\r\n`'di'      => include('di.php')`\r\n\r\nи файл di.php, например такой:\r\n\r\n`<?php return array('security' => new Framework\\Security(), 'session' => new Session\\Session() );`\r\n\r\nРазрешено ли изменение config.php + добавление нового конфига по условию задания?\r\nНужно ли делать такое?"}}