{"action":"created","comment":{"url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/pulls/comments/48091866","id":48091866,"diff_hunk":"@@ -18,6 +23,24 @@\n  */\n \n $container = new ContainerBuilder();","path":"app/config/services.php","position":15,"original_position":15,"commit_id":"2fd0ac6b5d23c99dc18ec3296303b6a604445e30","original_commit_id":"2fd0ac6b5d23c99dc18ec3296303b6a604445e30","user":{"login":"JMitnik","id":9025544,"avatar_url":"https://avatars.githubusercontent.com/u/9025544?v=3","gravatar_id":"","url":"https://api.github.com/users/JMitnik","html_url":"https://github.com/JMitnik","followers_url":"https://api.github.com/users/JMitnik/followers","following_url":"https://api.github.com/users/JMitnik/following{/other_user}","gists_url":"https://api.github.com/users/JMitnik/gists{/gist_id}","starred_url":"https://api.github.com/users/JMitnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JMitnik/subscriptions","organizations_url":"https://api.github.com/users/JMitnik/orgs","repos_url":"https://api.github.com/users/JMitnik/repos","events_url":"https://api.github.com/users/JMitnik/events{/privacy}","received_events_url":"https://api.github.com/users/JMitnik/received_events","type":"User","site_admin":false},"body":"Van wat ik begrepen heb, werkt Dependency Injection en containers, **dus** ongeveer als volgt:\r\n\r\nJe creert een container, waarin verschillende 'services' staan. Deze services worden vereist door bepaalde classes, maar je stopt ook deze classes in de container(?), zodat wanneer de class een bepaalde service nodig heeft, de container deze kan genereren.\r\n\r\nDit heb ik als voorbeeld gezien op internet:\r\n\r\n```\r\n<?php\r\nclass Container\r\n{\r\n  public function getMailTransport()\r\n  {\r\n    return new Zend_Mail_Transport_Smtp('smtp.gmail.com', array(\r\n      'auth'     => 'login',\r\n      'username' => 'foo',\r\n      'password' => 'bar',\r\n      'ssl'      => 'ssl',\r\n      'port'     => 465,\r\n    ));\r\n  }\r\n \r\n  public function getMailer()\r\n  {\r\n    $mailer = new Zend_Mail();\r\n    $mailer->setDefaultTransport($this->getMailTransport());\r\n \r\n    return $mailer;\r\n  }\r\n?>\r\n```\r\nHierbij heeft de $mailer een transport nodig. Maar omdat ze nu in dezelfde container zitten, kan de transport gegenereerd worden met ```getMailTransport()```wanneer de mailer gemaakt wordt. \r\n\r\n","created_at":"2015-12-19T12:21:10Z","updated_at":"2015-12-19T12:21:10Z","html_url":"https://github.com/HarryFrissr/VolenteerMatching/pull/33#discussion_r48091866","pull_request_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/pulls/33","_links":{"self":{"href":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/pulls/comments/48091866"},"html":{"href":"https://github.com/HarryFrissr/VolenteerMatching/pull/33#discussion_r48091866"},"pull_request":{"href":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/pulls/33"}}},"pull_request":{"url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/pulls/33","id":54070086,"html_url":"https://github.com/HarryFrissr/VolenteerMatching/pull/33","diff_url":"https://github.com/HarryFrissr/VolenteerMatching/pull/33.diff","patch_url":"https://github.com/HarryFrissr/VolenteerMatching/pull/33.patch","issue_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/issues/33","number":33,"state":"closed","locked":false,"title":"Feature/introduction of templates","user":{"login":"HarryFrissr","id":16253867,"avatar_url":"https://avatars.githubusercontent.com/u/16253867?v=3","gravatar_id":"","url":"https://api.github.com/users/HarryFrissr","html_url":"https://github.com/HarryFrissr","followers_url":"https://api.github.com/users/HarryFrissr/followers","following_url":"https://api.github.com/users/HarryFrissr/following{/other_user}","gists_url":"https://api.github.com/users/HarryFrissr/gists{/gist_id}","starred_url":"https://api.github.com/users/HarryFrissr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HarryFrissr/subscriptions","organizations_url":"https://api.github.com/users/HarryFrissr/orgs","repos_url":"https://api.github.com/users/HarryFrissr/repos","events_url":"https://api.github.com/users/HarryFrissr/events{/privacy}","received_events_url":"https://api.github.com/users/HarryFrissr/received_events","type":"User","site_admin":false},"body":"Ik wil graag dat iedereen deze Pull Request bekijkt. \r\n\r\nOpdracht: stel minimaal 3 vragen of geef suggesties. Vragen kan je door aan de linker kant de plus te selecteren bij de code.\r\n\r\n@marloutoyou \r\n@Tumbleweedovski \r\n@mpisters \r\n@janrz \r\n@casbootuva \r\n@JMitnik \r\n@Maik-C \r\n@EsthervdG \r\n@samansmink \r\n@Hiltje \r\n@HVSoftware ","created_at":"2015-12-18T06:46:01Z","updated_at":"2015-12-19T12:21:10Z","closed_at":"2015-12-18T12:40:48Z","merged_at":"2015-12-18T12:40:48Z","merge_commit_sha":"2844ee9578725d27045d684ea64470526e727d3f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/pulls/33/commits","review_comments_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/pulls/33/comments","review_comment_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/issues/33/comments","statuses_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/statuses/2fd0ac6b5d23c99dc18ec3296303b6a604445e30","head":{"label":"HarryFrissr:feature/Introduction_of_Templates","ref":"feature/Introduction_of_Templates","sha":"2fd0ac6b5d23c99dc18ec3296303b6a604445e30","user":{"login":"HarryFrissr","id":16253867,"avatar_url":"https://avatars.githubusercontent.com/u/16253867?v=3","gravatar_id":"","url":"https://api.github.com/users/HarryFrissr","html_url":"https://github.com/HarryFrissr","followers_url":"https://api.github.com/users/HarryFrissr/followers","following_url":"https://api.github.com/users/HarryFrissr/following{/other_user}","gists_url":"https://api.github.com/users/HarryFrissr/gists{/gist_id}","starred_url":"https://api.github.com/users/HarryFrissr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HarryFrissr/subscriptions","organizations_url":"https://api.github.com/users/HarryFrissr/orgs","repos_url":"https://api.github.com/users/HarryFrissr/repos","events_url":"https://api.github.com/users/HarryFrissr/events{/privacy}","received_events_url":"https://api.github.com/users/HarryFrissr/received_events","type":"User","site_admin":false},"repo":{"id":47820676,"name":"VolenteerMatching","full_name":"HarryFrissr/VolenteerMatching","owner":{"login":"HarryFrissr","id":16253867,"avatar_url":"https://avatars.githubusercontent.com/u/16253867?v=3","gravatar_id":"","url":"https://api.github.com/users/HarryFrissr","html_url":"https://github.com/HarryFrissr","followers_url":"https://api.github.com/users/HarryFrissr/followers","following_url":"https://api.github.com/users/HarryFrissr/following{/other_user}","gists_url":"https://api.github.com/users/HarryFrissr/gists{/gist_id}","starred_url":"https://api.github.com/users/HarryFrissr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HarryFrissr/subscriptions","organizations_url":"https://api.github.com/users/HarryFrissr/orgs","repos_url":"https://api.github.com/users/HarryFrissr/repos","events_url":"https://api.github.com/users/HarryFrissr/events{/privacy}","received_events_url":"https://api.github.com/users/HarryFrissr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/HarryFrissr/VolenteerMatching","description":"Match Vluchtelingen in Nederland aan Vrijwillers in de Buurt.","fork":false,"url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching","forks_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/forks","keys_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/teams","hooks_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/hooks","issue_events_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/issues/events{/number}","events_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/events","assignees_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/assignees{/user}","branches_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/branches{/branch}","tags_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/tags","blobs_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/git/refs{/sha}","trees_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/statuses/{sha}","languages_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/languages","stargazers_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/stargazers","contributors_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/contributors","subscribers_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/subscribers","subscription_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/subscription","commits_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/commits{/sha}","git_commits_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/git/commits{/sha}","comments_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/comments{/number}","issue_comment_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/issues/comments{/number}","contents_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/contents/{+path}","compare_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/merges","archive_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/downloads","issues_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/issues{/number}","pulls_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/pulls{/number}","milestones_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/milestones{/number}","notifications_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/labels{/name}","releases_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/releases{/id}","created_at":"2015-12-11T10:35:25Z","updated_at":"2015-12-12T08:32:11Z","pushed_at":"2015-12-18T12:40:48Z","git_url":"git://github.com/HarryFrissr/VolenteerMatching.git","ssh_url":"git@github.com:HarryFrissr/VolenteerMatching.git","clone_url":"https://github.com/HarryFrissr/VolenteerMatching.git","svn_url":"https://github.com/HarryFrissr/VolenteerMatching","homepage":null,"size":162,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":6,"forks":1,"open_issues":6,"watchers":0,"default_branch":"master"}},"base":{"label":"HarryFrissr:master","ref":"master","sha":"b5c746f9edeed6f317bf0979cf9dded533375db0","user":{"login":"HarryFrissr","id":16253867,"avatar_url":"https://avatars.githubusercontent.com/u/16253867?v=3","gravatar_id":"","url":"https://api.github.com/users/HarryFrissr","html_url":"https://github.com/HarryFrissr","followers_url":"https://api.github.com/users/HarryFrissr/followers","following_url":"https://api.github.com/users/HarryFrissr/following{/other_user}","gists_url":"https://api.github.com/users/HarryFrissr/gists{/gist_id}","starred_url":"https://api.github.com/users/HarryFrissr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HarryFrissr/subscriptions","organizations_url":"https://api.github.com/users/HarryFrissr/orgs","repos_url":"https://api.github.com/users/HarryFrissr/repos","events_url":"https://api.github.com/users/HarryFrissr/events{/privacy}","received_events_url":"https://api.github.com/users/HarryFrissr/received_events","type":"User","site_admin":false},"repo":{"id":47820676,"name":"VolenteerMatching","full_name":"HarryFrissr/VolenteerMatching","owner":{"login":"HarryFrissr","id":16253867,"avatar_url":"https://avatars.githubusercontent.com/u/16253867?v=3","gravatar_id":"","url":"https://api.github.com/users/HarryFrissr","html_url":"https://github.com/HarryFrissr","followers_url":"https://api.github.com/users/HarryFrissr/followers","following_url":"https://api.github.com/users/HarryFrissr/following{/other_user}","gists_url":"https://api.github.com/users/HarryFrissr/gists{/gist_id}","starred_url":"https://api.github.com/users/HarryFrissr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HarryFrissr/subscriptions","organizations_url":"https://api.github.com/users/HarryFrissr/orgs","repos_url":"https://api.github.com/users/HarryFrissr/repos","events_url":"https://api.github.com/users/HarryFrissr/events{/privacy}","received_events_url":"https://api.github.com/users/HarryFrissr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/HarryFrissr/VolenteerMatching","description":"Match Vluchtelingen in Nederland aan Vrijwillers in de Buurt.","fork":false,"url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching","forks_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/forks","keys_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/teams","hooks_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/hooks","issue_events_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/issues/events{/number}","events_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/events","assignees_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/assignees{/user}","branches_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/branches{/branch}","tags_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/tags","blobs_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/git/refs{/sha}","trees_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/statuses/{sha}","languages_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/languages","stargazers_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/stargazers","contributors_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/contributors","subscribers_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/subscribers","subscription_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/subscription","commits_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/commits{/sha}","git_commits_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/git/commits{/sha}","comments_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/comments{/number}","issue_comment_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/issues/comments{/number}","contents_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/contents/{+path}","compare_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/merges","archive_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/downloads","issues_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/issues{/number}","pulls_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/pulls{/number}","milestones_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/milestones{/number}","notifications_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/labels{/name}","releases_url":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/releases{/id}","created_at":"2015-12-11T10:35:25Z","updated_at":"2015-12-12T08:32:11Z","pushed_at":"2015-12-18T12:40:48Z","git_url":"git://github.com/HarryFrissr/VolenteerMatching.git","ssh_url":"git@github.com:HarryFrissr/VolenteerMatching.git","clone_url":"https://github.com/HarryFrissr/VolenteerMatching.git","svn_url":"https://github.com/HarryFrissr/VolenteerMatching","homepage":null,"size":162,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":6,"forks":1,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/pulls/33"},"html":{"href":"https://github.com/HarryFrissr/VolenteerMatching/pull/33"},"issue":{"href":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/issues/33"},"comments":{"href":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/HarryFrissr/VolenteerMatching/statuses/2fd0ac6b5d23c99dc18ec3296303b6a604445e30"}}}}