{"action":"created","comment":{"url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/pulls/comments/78371513","id":78371513,"diff_hunk":"@@ -64,14 +61,33 @@ public function invalidateCacheOnDeletePublishedContent(ContentEvent $event)\n         }\n     }\n \n+   /**\n+     * @param ContentEvent $event\n+     */\n+    public function invalidateCacheOnUpdateOutOfWorkflowContent(ContentEvent $event)\n+    {\n+        $content = $event->getContent();\n+        $previousStatus = $event->getPreviousStatus();\n+\n+        if ($previousStatus instanceof StatusInterface && $previousStatus->isOutOfWorkflow()) {","path":"Backoffice/EventSubscriber/ContentUpdateCacheSubscriber.php","position":26,"original_position":26,"commit_id":"325d826595102c07794b856ae17cdf32c534f7cf","original_commit_id":"325d826595102c07794b856ae17cdf32c534f7cf","user":{"login":"ngilain","id":6725138,"avatar_url":"https://avatars.githubusercontent.com/u/6725138?v=3","gravatar_id":"","url":"https://api.github.com/users/ngilain","html_url":"https://github.com/ngilain","followers_url":"https://api.github.com/users/ngilain/followers","following_url":"https://api.github.com/users/ngilain/following{/other_user}","gists_url":"https://api.github.com/users/ngilain/gists{/gist_id}","starred_url":"https://api.github.com/users/ngilain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngilain/subscriptions","organizations_url":"https://api.github.com/users/ngilain/orgs","repos_url":"https://api.github.com/users/ngilain/repos","events_url":"https://api.github.com/users/ngilain/events{/privacy}","received_events_url":"https://api.github.com/users/ngilain/received_events","type":"User","site_admin":false},"body":"@itkg-nanne : should the criteria be $previousStatus->isOutOfWorkflow() or $previousStatus->isPublished() ?","created_at":"2016-09-12T13:27:46Z","updated_at":"2016-09-12T13:27:46Z","html_url":"https://github.com/open-orchestra/open-orchestra-cms-bundle/pull/1869#discussion_r78371513","pull_request_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/pulls/1869","_links":{"self":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/pulls/comments/78371513"},"html":{"href":"https://github.com/open-orchestra/open-orchestra-cms-bundle/pull/1869#discussion_r78371513"},"pull_request":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/pulls/1869"}}},"pull_request":{"url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/pulls/1869","id":84624995,"html_url":"https://github.com/open-orchestra/open-orchestra-cms-bundle/pull/1869","diff_url":"https://github.com/open-orchestra/open-orchestra-cms-bundle/pull/1869.diff","patch_url":"https://github.com/open-orchestra/open-orchestra-cms-bundle/pull/1869.patch","issue_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/issues/1869","number":1869,"state":"open","locked":false,"title":"add optionally statusable","user":{"login":"itkg-nanne","id":6725133,"avatar_url":"https://avatars.githubusercontent.com/u/6725133?v=3","gravatar_id":"","url":"https://api.github.com/users/itkg-nanne","html_url":"https://github.com/itkg-nanne","followers_url":"https://api.github.com/users/itkg-nanne/followers","following_url":"https://api.github.com/users/itkg-nanne/following{/other_user}","gists_url":"https://api.github.com/users/itkg-nanne/gists{/gist_id}","starred_url":"https://api.github.com/users/itkg-nanne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itkg-nanne/subscriptions","organizations_url":"https://api.github.com/users/itkg-nanne/orgs","repos_url":"https://api.github.com/users/itkg-nanne/repos","events_url":"https://api.github.com/users/itkg-nanne/events{/privacy}","received_events_url":"https://api.github.com/users/itkg-nanne/received_events","type":"User","site_admin":false},"body":"[OO-FEATURE] add optionally statusable for content\r\n\r\nhttps://github.com/open-orchestra/open-orchestra-cms-bundle/pull/1869\r\nhttps://github.com/open-orchestra/open-orchestra-model-bundle/pull/646\r\nhttps://github.com/open-orchestra/open-orchestra-model-interface/pull/227","created_at":"2016-09-09T10:03:42Z","updated_at":"2016-09-12T13:27:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e81efde2500a8937701a7205fd57814467705801","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/pulls/1869/commits","review_comments_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/pulls/1869/comments","review_comment_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/issues/1869/comments","statuses_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/statuses/325d826595102c07794b856ae17cdf32c534f7cf","head":{"label":"open-orchestra:optionallyStatusable","ref":"optionallyStatusable","sha":"325d826595102c07794b856ae17cdf32c534f7cf","user":{"login":"open-orchestra","id":11756116,"avatar_url":"https://avatars.githubusercontent.com/u/11756116?v=3","gravatar_id":"","url":"https://api.github.com/users/open-orchestra","html_url":"https://github.com/open-orchestra","followers_url":"https://api.github.com/users/open-orchestra/followers","following_url":"https://api.github.com/users/open-orchestra/following{/other_user}","gists_url":"https://api.github.com/users/open-orchestra/gists{/gist_id}","starred_url":"https://api.github.com/users/open-orchestra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-orchestra/subscriptions","organizations_url":"https://api.github.com/users/open-orchestra/orgs","repos_url":"https://api.github.com/users/open-orchestra/repos","events_url":"https://api.github.com/users/open-orchestra/events{/privacy}","received_events_url":"https://api.github.com/users/open-orchestra/received_events","type":"Organization","site_admin":false},"repo":{"id":21900253,"name":"open-orchestra-cms-bundle","full_name":"open-orchestra/open-orchestra-cms-bundle","owner":{"login":"open-orchestra","id":11756116,"avatar_url":"https://avatars.githubusercontent.com/u/11756116?v=3","gravatar_id":"","url":"https://api.github.com/users/open-orchestra","html_url":"https://github.com/open-orchestra","followers_url":"https://api.github.com/users/open-orchestra/followers","following_url":"https://api.github.com/users/open-orchestra/following{/other_user}","gists_url":"https://api.github.com/users/open-orchestra/gists{/gist_id}","starred_url":"https://api.github.com/users/open-orchestra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-orchestra/subscriptions","organizations_url":"https://api.github.com/users/open-orchestra/orgs","repos_url":"https://api.github.com/users/open-orchestra/repos","events_url":"https://api.github.com/users/open-orchestra/events{/privacy}","received_events_url":"https://api.github.com/users/open-orchestra/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/open-orchestra/open-orchestra-cms-bundle","description":"The open orchestra cms bundle","fork":false,"url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle","forks_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/forks","keys_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/teams","hooks_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/hooks","issue_events_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/issues/events{/number}","events_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/events","assignees_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/assignees{/user}","branches_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/branches{/branch}","tags_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/tags","blobs_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/statuses/{sha}","languages_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/languages","stargazers_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/stargazers","contributors_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/contributors","subscribers_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/subscribers","subscription_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/subscription","commits_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/contents/{+path}","compare_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/merges","archive_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/downloads","issues_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/issues{/number}","pulls_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/pulls{/number}","milestones_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/milestones{/number}","notifications_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/labels{/name}","releases_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/releases{/id}","deployments_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/deployments","created_at":"2014-07-16T12:49:27Z","updated_at":"2016-08-24T08:37:00Z","pushed_at":"2016-09-12T12:26:34Z","git_url":"git://github.com/open-orchestra/open-orchestra-cms-bundle.git","ssh_url":"git@github.com:open-orchestra/open-orchestra-cms-bundle.git","clone_url":"https://github.com/open-orchestra/open-orchestra-cms-bundle.git","svn_url":"https://github.com/open-orchestra/open-orchestra-cms-bundle","homepage":"http://open-orchestra.com","size":18707,"stargazers_count":5,"watchers_count":5,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":15,"forks":5,"open_issues":15,"watchers":5,"default_branch":"master"}},"base":{"label":"open-orchestra:master","ref":"master","sha":"db1aa0defc0b813026a722867f9b4f68628129d5","user":{"login":"open-orchestra","id":11756116,"avatar_url":"https://avatars.githubusercontent.com/u/11756116?v=3","gravatar_id":"","url":"https://api.github.com/users/open-orchestra","html_url":"https://github.com/open-orchestra","followers_url":"https://api.github.com/users/open-orchestra/followers","following_url":"https://api.github.com/users/open-orchestra/following{/other_user}","gists_url":"https://api.github.com/users/open-orchestra/gists{/gist_id}","starred_url":"https://api.github.com/users/open-orchestra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-orchestra/subscriptions","organizations_url":"https://api.github.com/users/open-orchestra/orgs","repos_url":"https://api.github.com/users/open-orchestra/repos","events_url":"https://api.github.com/users/open-orchestra/events{/privacy}","received_events_url":"https://api.github.com/users/open-orchestra/received_events","type":"Organization","site_admin":false},"repo":{"id":21900253,"name":"open-orchestra-cms-bundle","full_name":"open-orchestra/open-orchestra-cms-bundle","owner":{"login":"open-orchestra","id":11756116,"avatar_url":"https://avatars.githubusercontent.com/u/11756116?v=3","gravatar_id":"","url":"https://api.github.com/users/open-orchestra","html_url":"https://github.com/open-orchestra","followers_url":"https://api.github.com/users/open-orchestra/followers","following_url":"https://api.github.com/users/open-orchestra/following{/other_user}","gists_url":"https://api.github.com/users/open-orchestra/gists{/gist_id}","starred_url":"https://api.github.com/users/open-orchestra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-orchestra/subscriptions","organizations_url":"https://api.github.com/users/open-orchestra/orgs","repos_url":"https://api.github.com/users/open-orchestra/repos","events_url":"https://api.github.com/users/open-orchestra/events{/privacy}","received_events_url":"https://api.github.com/users/open-orchestra/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/open-orchestra/open-orchestra-cms-bundle","description":"The open orchestra cms bundle","fork":false,"url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle","forks_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/forks","keys_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/teams","hooks_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/hooks","issue_events_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/issues/events{/number}","events_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/events","assignees_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/assignees{/user}","branches_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/branches{/branch}","tags_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/tags","blobs_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/statuses/{sha}","languages_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/languages","stargazers_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/stargazers","contributors_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/contributors","subscribers_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/subscribers","subscription_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/subscription","commits_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/contents/{+path}","compare_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/merges","archive_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/downloads","issues_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/issues{/number}","pulls_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/pulls{/number}","milestones_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/milestones{/number}","notifications_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/labels{/name}","releases_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/releases{/id}","deployments_url":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/deployments","created_at":"2014-07-16T12:49:27Z","updated_at":"2016-08-24T08:37:00Z","pushed_at":"2016-09-12T12:26:34Z","git_url":"git://github.com/open-orchestra/open-orchestra-cms-bundle.git","ssh_url":"git@github.com:open-orchestra/open-orchestra-cms-bundle.git","clone_url":"https://github.com/open-orchestra/open-orchestra-cms-bundle.git","svn_url":"https://github.com/open-orchestra/open-orchestra-cms-bundle","homepage":"http://open-orchestra.com","size":18707,"stargazers_count":5,"watchers_count":5,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":15,"forks":5,"open_issues":15,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/pulls/1869"},"html":{"href":"https://github.com/open-orchestra/open-orchestra-cms-bundle/pull/1869"},"issue":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/issues/1869"},"comments":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/issues/1869/comments"},"review_comments":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/pulls/1869/comments"},"review_comment":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/pulls/1869/commits"},"statuses":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-cms-bundle/statuses/325d826595102c07794b856ae17cdf32c534f7cf"}}}}
{"actor":{"display_login":"ngilain"}}