{"action":"created","comment":{"url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/pulls/comments/45044898","id":45044898,"diff_hunk":"@@ -0,0 +1,36 @@\n+<?php\n+\n+namespace Knp\\DoctrineBehaviors\\Bundle\\DependencyInjection\\CompilerPass;\n+\n+use Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\n+use Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n+\n+class DisableBehaviorsPass implements CompilerPassInterface\n+{\n+    /**\n+     * {@inheritDoc}\n+     */\n+    public function process(ContainerBuilder $builder)\n+    {\n+        $behaviors = [\n+            'blameable',\n+            'geocodable',\n+            'loggable',\n+            'sluggable',\n+            'soft_deletable',\n+            'sortable',\n+            'timestampable',\n+            'translatable',\n+            'tree',\n+        ];\n+\n+        foreach ($behaviors AS $behavior)  {\n+            if (true === $builder->getParameter(sprintf('knp_doctrine_behaviors.%s.enabled', $behavior))) {\n+                continue;\n+            }\n+            var_dump($behavior);","path":"src/Bundle/DependencyInjection/CompilerPass/DisableBehaviorsPass.php","position":31,"original_position":31,"commit_id":"65c564899f6a8253289b2b25e14b8ec235dc6f4f","original_commit_id":"65c564899f6a8253289b2b25e14b8ec235dc6f4f","user":{"login":"docteurklein","id":109846,"avatar_url":"https://avatars.githubusercontent.com/u/109846?v=3","gravatar_id":"","url":"https://api.github.com/users/docteurklein","html_url":"https://github.com/docteurklein","followers_url":"https://api.github.com/users/docteurklein/followers","following_url":"https://api.github.com/users/docteurklein/following{/other_user}","gists_url":"https://api.github.com/users/docteurklein/gists{/gist_id}","starred_url":"https://api.github.com/users/docteurklein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docteurklein/subscriptions","organizations_url":"https://api.github.com/users/docteurklein/orgs","repos_url":"https://api.github.com/users/docteurklein/repos","events_url":"https://api.github.com/users/docteurklein/events{/privacy}","received_events_url":"https://api.github.com/users/docteurklein/received_events","type":"User","site_admin":false},"body":"missing var_dump","created_at":"2015-11-17T10:45:50Z","updated_at":"2015-11-17T10:45:50Z","html_url":"https://github.com/KnpLabs/DoctrineBehaviors/pull/266#discussion_r45044898","pull_request_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/pulls/266","_links":{"self":{"href":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/pulls/comments/45044898"},"html":{"href":"https://github.com/KnpLabs/DoctrineBehaviors/pull/266#discussion_r45044898"},"pull_request":{"href":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/pulls/266"}}},"pull_request":{"url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/pulls/266","id":50926596,"html_url":"https://github.com/KnpLabs/DoctrineBehaviors/pull/266","diff_url":"https://github.com/KnpLabs/DoctrineBehaviors/pull/266.diff","patch_url":"https://github.com/KnpLabs/DoctrineBehaviors/pull/266.patch","issue_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/issues/266","number":266,"state":"open","locked":false,"title":"Make Behaviors configurable.","user":{"login":"NiR-","id":557933,"avatar_url":"https://avatars.githubusercontent.com/u/557933?v=3","gravatar_id":"","url":"https://api.github.com/users/NiR-","html_url":"https://github.com/NiR-","followers_url":"https://api.github.com/users/NiR-/followers","following_url":"https://api.github.com/users/NiR-/following{/other_user}","gists_url":"https://api.github.com/users/NiR-/gists{/gist_id}","starred_url":"https://api.github.com/users/NiR-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NiR-/subscriptions","organizations_url":"https://api.github.com/users/NiR-/orgs","repos_url":"https://api.github.com/users/NiR-/repos","events_url":"https://api.github.com/users/NiR-/events{/privacy}","received_events_url":"https://api.github.com/users/NiR-/received_events","type":"User","site_admin":false},"body":"You can now enable/disable behaviors you don't want using the bundle config.\r\nBy default, all behaviors are enabled. As soon as `knp_doctrine_behaviors` is\r\nspecified, all behaviors are disabled and the developer need to specify which\r\nones he want to enable.\r\n\r\nThis fix conflict issues, for example when a `setCurrentLocale` method is\r\ndefined by another third-party library/bundle.\r\n\r\nThis way does not introduce BC breaks, but only a new feature. The best would\r\nbe to add some interfaces and use them in subscribers. But that would imply\r\na major release... Maybe for the next one :-)","created_at":"2015-11-17T10:09:37Z","updated_at":"2015-11-17T10:45:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"56a3760baeef5bb292f3e7ea807a3299dbfd84dc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/pulls/266/commits","review_comments_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/pulls/266/comments","review_comment_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/pulls/comments{/number}","comments_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/issues/266/comments","statuses_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/statuses/65c564899f6a8253289b2b25e14b8ec235dc6f4f","head":{"label":"NiR-:feature/configurable-behaviors","ref":"feature/configurable-behaviors","sha":"65c564899f6a8253289b2b25e14b8ec235dc6f4f","user":{"login":"NiR-","id":557933,"avatar_url":"https://avatars.githubusercontent.com/u/557933?v=3","gravatar_id":"","url":"https://api.github.com/users/NiR-","html_url":"https://github.com/NiR-","followers_url":"https://api.github.com/users/NiR-/followers","following_url":"https://api.github.com/users/NiR-/following{/other_user}","gists_url":"https://api.github.com/users/NiR-/gists{/gist_id}","starred_url":"https://api.github.com/users/NiR-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NiR-/subscriptions","organizations_url":"https://api.github.com/users/NiR-/orgs","repos_url":"https://api.github.com/users/NiR-/repos","events_url":"https://api.github.com/users/NiR-/events{/privacy}","received_events_url":"https://api.github.com/users/NiR-/received_events","type":"User","site_admin":false},"repo":{"id":46331755,"name":"DoctrineBehaviors","full_name":"NiR-/DoctrineBehaviors","owner":{"login":"NiR-","id":557933,"avatar_url":"https://avatars.githubusercontent.com/u/557933?v=3","gravatar_id":"","url":"https://api.github.com/users/NiR-","html_url":"https://github.com/NiR-","followers_url":"https://api.github.com/users/NiR-/followers","following_url":"https://api.github.com/users/NiR-/following{/other_user}","gists_url":"https://api.github.com/users/NiR-/gists{/gist_id}","starred_url":"https://api.github.com/users/NiR-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NiR-/subscriptions","organizations_url":"https://api.github.com/users/NiR-/orgs","repos_url":"https://api.github.com/users/NiR-/repos","events_url":"https://api.github.com/users/NiR-/events{/privacy}","received_events_url":"https://api.github.com/users/NiR-/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NiR-/DoctrineBehaviors","description":"Doctrine2 behavior traits","fork":true,"url":"https://api.github.com/repos/NiR-/DoctrineBehaviors","forks_url":"https://api.github.com/repos/NiR-/DoctrineBehaviors/forks","keys_url":"https://api.github.com/repos/NiR-/DoctrineBehaviors/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NiR-/DoctrineBehaviors/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NiR-/DoctrineBehaviors/teams","hooks_url":"https://api.github.com/repos/NiR-/DoctrineBehaviors/hooks","issue_events_url":"https://api.github.com/repos/NiR-/DoctrineBehaviors/issues/events{/number}","events_url":"https://api.github.com/repos/NiR-/DoctrineBehaviors/events","assignees_url":"https://api.github.com/repos/NiR-/DoctrineBehaviors/assignees{/user}","branches_url":"https://api.github.com/repos/NiR-/DoctrineBehaviors/branches{/branch}","tags_url":"https://api.github.com/repos/NiR-/DoctrineBehaviors/tags","blobs_url":"https://api.github.com/repos/NiR-/DoctrineBehaviors/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NiR-/DoctrineBehaviors/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NiR-/DoctrineBehaviors/git/refs{/sha}","trees_url":"https://api.github.com/repos/NiR-/DoctrineBehaviors/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NiR-/DoctrineBehaviors/statuses/{sha}","languages_url":"https://api.github.com/repos/NiR-/DoctrineBehaviors/languages","stargazers_url":"https://api.github.com/repos/NiR-/DoctrineBehaviors/stargazers","contributors_url":"https://api.github.com/repos/NiR-/DoctrineBehaviors/contributors","subscribers_url":"https://api.github.com/repos/NiR-/DoctrineBehaviors/subscribers","subscription_url":"https://api.github.com/repos/NiR-/DoctrineBehaviors/subscription","commits_url":"https://api.github.com/repos/NiR-/DoctrineBehaviors/commits{/sha}","git_commits_url":"https://api.github.com/repos/NiR-/DoctrineBehaviors/git/commits{/sha}","comments_url":"https://api.github.com/repos/NiR-/DoctrineBehaviors/comments{/number}","issue_comment_url":"https://api.github.com/repos/NiR-/DoctrineBehaviors/issues/comments{/number}","contents_url":"https://api.github.com/repos/NiR-/DoctrineBehaviors/contents/{+path}","compare_url":"https://api.github.com/repos/NiR-/DoctrineBehaviors/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NiR-/DoctrineBehaviors/merges","archive_url":"https://api.github.com/repos/NiR-/DoctrineBehaviors/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NiR-/DoctrineBehaviors/downloads","issues_url":"https://api.github.com/repos/NiR-/DoctrineBehaviors/issues{/number}","pulls_url":"https://api.github.com/repos/NiR-/DoctrineBehaviors/pulls{/number}","milestones_url":"https://api.github.com/repos/NiR-/DoctrineBehaviors/milestones{/number}","notifications_url":"https://api.github.com/repos/NiR-/DoctrineBehaviors/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NiR-/DoctrineBehaviors/labels{/name}","releases_url":"https://api.github.com/repos/NiR-/DoctrineBehaviors/releases{/id}","created_at":"2015-11-17T07:59:38Z","updated_at":"2015-11-17T07:59:39Z","pushed_at":"2015-11-17T10:08:11Z","git_url":"git://github.com/NiR-/DoctrineBehaviors.git","ssh_url":"git@github.com:NiR-/DoctrineBehaviors.git","clone_url":"https://github.com/NiR-/DoctrineBehaviors.git","svn_url":"https://github.com/NiR-/DoctrineBehaviors","homepage":"http://knplabs.com","size":533,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"KnpLabs:master","ref":"master","sha":"a2a3b5aefd77eed6ca38231f2b3ace9640306137","user":{"login":"KnpLabs","id":202732,"avatar_url":"https://avatars.githubusercontent.com/u/202732?v=3","gravatar_id":"","url":"https://api.github.com/users/KnpLabs","html_url":"https://github.com/KnpLabs","followers_url":"https://api.github.com/users/KnpLabs/followers","following_url":"https://api.github.com/users/KnpLabs/following{/other_user}","gists_url":"https://api.github.com/users/KnpLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/KnpLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KnpLabs/subscriptions","organizations_url":"https://api.github.com/users/KnpLabs/orgs","repos_url":"https://api.github.com/users/KnpLabs/repos","events_url":"https://api.github.com/users/KnpLabs/events{/privacy}","received_events_url":"https://api.github.com/users/KnpLabs/received_events","type":"Organization","site_admin":false},"repo":{"id":3671952,"name":"DoctrineBehaviors","full_name":"KnpLabs/DoctrineBehaviors","owner":{"login":"KnpLabs","id":202732,"avatar_url":"https://avatars.githubusercontent.com/u/202732?v=3","gravatar_id":"","url":"https://api.github.com/users/KnpLabs","html_url":"https://github.com/KnpLabs","followers_url":"https://api.github.com/users/KnpLabs/followers","following_url":"https://api.github.com/users/KnpLabs/following{/other_user}","gists_url":"https://api.github.com/users/KnpLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/KnpLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KnpLabs/subscriptions","organizations_url":"https://api.github.com/users/KnpLabs/orgs","repos_url":"https://api.github.com/users/KnpLabs/repos","events_url":"https://api.github.com/users/KnpLabs/events{/privacy}","received_events_url":"https://api.github.com/users/KnpLabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/KnpLabs/DoctrineBehaviors","description":"Doctrine2 behavior traits","fork":false,"url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors","forks_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/forks","keys_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/teams","hooks_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/hooks","issue_events_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/issues/events{/number}","events_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/events","assignees_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/assignees{/user}","branches_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/branches{/branch}","tags_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/tags","blobs_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/git/refs{/sha}","trees_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/statuses/{sha}","languages_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/languages","stargazers_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/stargazers","contributors_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/contributors","subscribers_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/subscribers","subscription_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/subscription","commits_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/commits{/sha}","git_commits_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/git/commits{/sha}","comments_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/comments{/number}","issue_comment_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/issues/comments{/number}","contents_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/contents/{+path}","compare_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/merges","archive_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/downloads","issues_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/issues{/number}","pulls_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/pulls{/number}","milestones_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/milestones{/number}","notifications_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/labels{/name}","releases_url":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/releases{/id}","created_at":"2012-03-09T15:36:10Z","updated_at":"2015-11-16T00:50:27Z","pushed_at":"2015-11-17T10:09:37Z","git_url":"git://github.com/KnpLabs/DoctrineBehaviors.git","ssh_url":"git@github.com:KnpLabs/DoctrineBehaviors.git","clone_url":"https://github.com/KnpLabs/DoctrineBehaviors.git","svn_url":"https://github.com/KnpLabs/DoctrineBehaviors","homepage":"http://knplabs.com","size":1965,"stargazers_count":376,"watchers_count":376,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":108,"mirror_url":null,"open_issues_count":79,"forks":108,"open_issues":79,"watchers":376,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/pulls/266"},"html":{"href":"https://github.com/KnpLabs/DoctrineBehaviors/pull/266"},"issue":{"href":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/issues/266"},"comments":{"href":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/issues/266/comments"},"review_comments":{"href":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/pulls/266/comments"},"review_comment":{"href":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/pulls/266/commits"},"statuses":{"href":"https://api.github.com/repos/KnpLabs/DoctrineBehaviors/statuses/65c564899f6a8253289b2b25e14b8ec235dc6f4f"}}}}