{"action":"created","comment":{"url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/pulls/comments/32107643","id":32107643,"diff_hunk":"@@ -17,4 +17,46 @@ public function setDn($dn);\n      * @return string Distinguished Name\n      */\n     public function getDn();\n+\n+    /**\n+     * Never use this to check if this user has access to anything!\n+     *\n+     * Use the SecurityContext, or an implementation of AccessDecisionManager\n+     * instead, e.g.\n+     *\n+     *         $securityContext->isGranted('ROLE_USER');\n+     *\n+     * @param string $role\n+     *\n+     * @return bool\n+     */\n+    public function hasRole($role);\n+\n+    /**\n+     * Sets the roles of the user.\n+     * This overwrites any previous roles.\n+     *\n+     * @param array $roles\n+     *\n+     * @return self\n+     */\n+    public function setRoles(array $roles);\n+\n+    /**\n+     * Adds a role to the user.\n+     *\n+     * @param string $role\n+     *\n+     * @return self","path":"Model/LdapUserInterface.php","position":34,"original_position":34,"commit_id":"98c5eef95637b4fe3d44a563cd76a984aad105e6","original_commit_id":"98c5eef95637b4fe3d44a563cd76a984aad105e6","user":{"login":"Maks3w","id":1301698,"avatar_url":"https://avatars.githubusercontent.com/u/1301698?v=3","gravatar_id":"","url":"https://api.github.com/users/Maks3w","html_url":"https://github.com/Maks3w","followers_url":"https://api.github.com/users/Maks3w/followers","following_url":"https://api.github.com/users/Maks3w/following{/other_user}","gists_url":"https://api.github.com/users/Maks3w/gists{/gist_id}","starred_url":"https://api.github.com/users/Maks3w/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Maks3w/subscriptions","organizations_url":"https://api.github.com/users/Maks3w/orgs","repos_url":"https://api.github.com/users/Maks3w/repos","events_url":"https://api.github.com/users/Maks3w/events{/privacy}","received_events_url":"https://api.github.com/users/Maks3w/received_events","type":"User","site_admin":false},"body":"Return `void`. We don't want  fluid interfaces.","created_at":"2015-06-10T11:19:06Z","updated_at":"2015-06-10T11:19:06Z","html_url":"https://github.com/Maks3w/FR3DLdapBundle/pull/93#discussion_r32107643","pull_request_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/pulls/93","_links":{"self":{"href":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/pulls/comments/32107643"},"html":{"href":"https://github.com/Maks3w/FR3DLdapBundle/pull/93#discussion_r32107643"},"pull_request":{"href":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/pulls/93"}}},"pull_request":{"url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/pulls/93","id":35277930,"html_url":"https://github.com/Maks3w/FR3DLdapBundle/pull/93","diff_url":"https://github.com/Maks3w/FR3DLdapBundle/pull/93.diff","patch_url":"https://github.com/Maks3w/FR3DLdapBundle/pull/93.patch","issue_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/issues/93","number":93,"state":"open","locked":false,"title":"Feature standalone mode","user":{"login":"Noles","id":3484086,"avatar_url":"https://avatars.githubusercontent.com/u/3484086?v=3","gravatar_id":"","url":"https://api.github.com/users/Noles","html_url":"https://github.com/Noles","followers_url":"https://api.github.com/users/Noles/followers","following_url":"https://api.github.com/users/Noles/following{/other_user}","gists_url":"https://api.github.com/users/Noles/gists{/gist_id}","starred_url":"https://api.github.com/users/Noles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Noles/subscriptions","organizations_url":"https://api.github.com/users/Noles/orgs","repos_url":"https://api.github.com/users/Noles/repos","events_url":"https://api.github.com/users/Noles/events{/privacy}","received_events_url":"https://api.github.com/users/Noles/received_events","type":"User","site_admin":false},"body":"Standalone part related to #86","created_at":"2015-05-12T22:34:31Z","updated_at":"2015-06-10T11:19:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e655c0e586d62a0e73c4f32d5e0dca0cbffc347c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/pulls/93/commits","review_comments_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/pulls/93/comments","review_comment_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/issues/93/comments","statuses_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/statuses/98c5eef95637b4fe3d44a563cd76a984aad105e6","head":{"label":"Noles:feature-standaloneMode","ref":"feature-standaloneMode","sha":"98c5eef95637b4fe3d44a563cd76a984aad105e6","user":{"login":"Noles","id":3484086,"avatar_url":"https://avatars.githubusercontent.com/u/3484086?v=3","gravatar_id":"","url":"https://api.github.com/users/Noles","html_url":"https://github.com/Noles","followers_url":"https://api.github.com/users/Noles/followers","following_url":"https://api.github.com/users/Noles/following{/other_user}","gists_url":"https://api.github.com/users/Noles/gists{/gist_id}","starred_url":"https://api.github.com/users/Noles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Noles/subscriptions","organizations_url":"https://api.github.com/users/Noles/orgs","repos_url":"https://api.github.com/users/Noles/repos","events_url":"https://api.github.com/users/Noles/events{/privacy}","received_events_url":"https://api.github.com/users/Noles/received_events","type":"User","site_admin":false},"repo":{"id":33049423,"name":"FR3DLdapBundle","full_name":"Noles/FR3DLdapBundle","owner":{"login":"Noles","id":3484086,"avatar_url":"https://avatars.githubusercontent.com/u/3484086?v=3","gravatar_id":"","url":"https://api.github.com/users/Noles","html_url":"https://github.com/Noles","followers_url":"https://api.github.com/users/Noles/followers","following_url":"https://api.github.com/users/Noles/following{/other_user}","gists_url":"https://api.github.com/users/Noles/gists{/gist_id}","starred_url":"https://api.github.com/users/Noles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Noles/subscriptions","organizations_url":"https://api.github.com/users/Noles/orgs","repos_url":"https://api.github.com/users/Noles/repos","events_url":"https://api.github.com/users/Noles/events{/privacy}","received_events_url":"https://api.github.com/users/Noles/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Noles/FR3DLdapBundle","description":"This bundle integrates LDAP Authentication with any user manager (Ex: FOSUserBundle)","fork":true,"url":"https://api.github.com/repos/Noles/FR3DLdapBundle","forks_url":"https://api.github.com/repos/Noles/FR3DLdapBundle/forks","keys_url":"https://api.github.com/repos/Noles/FR3DLdapBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Noles/FR3DLdapBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Noles/FR3DLdapBundle/teams","hooks_url":"https://api.github.com/repos/Noles/FR3DLdapBundle/hooks","issue_events_url":"https://api.github.com/repos/Noles/FR3DLdapBundle/issues/events{/number}","events_url":"https://api.github.com/repos/Noles/FR3DLdapBundle/events","assignees_url":"https://api.github.com/repos/Noles/FR3DLdapBundle/assignees{/user}","branches_url":"https://api.github.com/repos/Noles/FR3DLdapBundle/branches{/branch}","tags_url":"https://api.github.com/repos/Noles/FR3DLdapBundle/tags","blobs_url":"https://api.github.com/repos/Noles/FR3DLdapBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Noles/FR3DLdapBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Noles/FR3DLdapBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/Noles/FR3DLdapBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Noles/FR3DLdapBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/Noles/FR3DLdapBundle/languages","stargazers_url":"https://api.github.com/repos/Noles/FR3DLdapBundle/stargazers","contributors_url":"https://api.github.com/repos/Noles/FR3DLdapBundle/contributors","subscribers_url":"https://api.github.com/repos/Noles/FR3DLdapBundle/subscribers","subscription_url":"https://api.github.com/repos/Noles/FR3DLdapBundle/subscription","commits_url":"https://api.github.com/repos/Noles/FR3DLdapBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/Noles/FR3DLdapBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/Noles/FR3DLdapBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/Noles/FR3DLdapBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/Noles/FR3DLdapBundle/contents/{+path}","compare_url":"https://api.github.com/repos/Noles/FR3DLdapBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Noles/FR3DLdapBundle/merges","archive_url":"https://api.github.com/repos/Noles/FR3DLdapBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Noles/FR3DLdapBundle/downloads","issues_url":"https://api.github.com/repos/Noles/FR3DLdapBundle/issues{/number}","pulls_url":"https://api.github.com/repos/Noles/FR3DLdapBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/Noles/FR3DLdapBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/Noles/FR3DLdapBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Noles/FR3DLdapBundle/labels{/name}","releases_url":"https://api.github.com/repos/Noles/FR3DLdapBundle/releases{/id}","created_at":"2015-03-28T20:39:06Z","updated_at":"2015-04-12T19:42:22Z","pushed_at":"2015-06-09T22:20:30Z","git_url":"git://github.com/Noles/FR3DLdapBundle.git","ssh_url":"git@github.com:Noles/FR3DLdapBundle.git","clone_url":"https://github.com/Noles/FR3DLdapBundle.git","svn_url":"https://github.com/Noles/FR3DLdapBundle","homepage":"","size":540,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Maks3w:develop","ref":"develop","sha":"81c922dc6a1d3e6ccbeaea5aa4114b5d20acd09a","user":{"login":"Maks3w","id":1301698,"avatar_url":"https://avatars.githubusercontent.com/u/1301698?v=3","gravatar_id":"","url":"https://api.github.com/users/Maks3w","html_url":"https://github.com/Maks3w","followers_url":"https://api.github.com/users/Maks3w/followers","following_url":"https://api.github.com/users/Maks3w/following{/other_user}","gists_url":"https://api.github.com/users/Maks3w/gists{/gist_id}","starred_url":"https://api.github.com/users/Maks3w/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Maks3w/subscriptions","organizations_url":"https://api.github.com/users/Maks3w/orgs","repos_url":"https://api.github.com/users/Maks3w/repos","events_url":"https://api.github.com/users/Maks3w/events{/privacy}","received_events_url":"https://api.github.com/users/Maks3w/received_events","type":"User","site_admin":false},"repo":{"id":3365198,"name":"FR3DLdapBundle","full_name":"Maks3w/FR3DLdapBundle","owner":{"login":"Maks3w","id":1301698,"avatar_url":"https://avatars.githubusercontent.com/u/1301698?v=3","gravatar_id":"","url":"https://api.github.com/users/Maks3w","html_url":"https://github.com/Maks3w","followers_url":"https://api.github.com/users/Maks3w/followers","following_url":"https://api.github.com/users/Maks3w/following{/other_user}","gists_url":"https://api.github.com/users/Maks3w/gists{/gist_id}","starred_url":"https://api.github.com/users/Maks3w/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Maks3w/subscriptions","organizations_url":"https://api.github.com/users/Maks3w/orgs","repos_url":"https://api.github.com/users/Maks3w/repos","events_url":"https://api.github.com/users/Maks3w/events{/privacy}","received_events_url":"https://api.github.com/users/Maks3w/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Maks3w/FR3DLdapBundle","description":"This bundle integrates LDAP Authentication with any user manager (Ex: FOSUserBundle)","fork":false,"url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle","forks_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/forks","keys_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/teams","hooks_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/hooks","issue_events_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/issues/events{/number}","events_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/events","assignees_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/assignees{/user}","branches_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/branches{/branch}","tags_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/tags","blobs_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/languages","stargazers_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/stargazers","contributors_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/contributors","subscribers_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/subscribers","subscription_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/subscription","commits_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/contents/{+path}","compare_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/merges","archive_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/downloads","issues_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/issues{/number}","pulls_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/labels{/name}","releases_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/releases{/id}","created_at":"2012-02-06T07:55:41Z","updated_at":"2015-06-09T12:49:33Z","pushed_at":"2015-06-10T11:06:53Z","git_url":"git://github.com/Maks3w/FR3DLdapBundle.git","ssh_url":"git@github.com:Maks3w/FR3DLdapBundle.git","clone_url":"https://github.com/Maks3w/FR3DLdapBundle.git","svn_url":"https://github.com/Maks3w/FR3DLdapBundle","homepage":"","size":986,"stargazers_count":63,"watchers_count":63,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":56,"mirror_url":null,"open_issues_count":8,"forks":56,"open_issues":8,"watchers":63,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/pulls/93"},"html":{"href":"https://github.com/Maks3w/FR3DLdapBundle/pull/93"},"issue":{"href":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/issues/93"},"comments":{"href":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/issues/93/comments"},"review_comments":{"href":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/pulls/93/comments"},"review_comment":{"href":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/pulls/93/commits"},"statuses":{"href":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/statuses/98c5eef95637b4fe3d44a563cd76a984aad105e6"}}}}