{"action":"created","comment":{"url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/comments/222273938","pull_request_review_id":161118228,"id":222273938,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMjI3MzkzOA==","diff_hunk":"@@ -0,0 +1,56 @@\n+<?php\n+/**\n+ * 2007-2018 PrestaShop.\n+ *\n+ * NOTICE OF LICENSE\n+ *\n+ * This source file is subject to the Open Software License (OSL 3.0)\n+ * that is bundled with this package in the file LICENSE.txt.\n+ * It is also available through the world-wide-web at this URL:\n+ * https://opensource.org/licenses/OSL-3.0\n+ * If you did not receive a copy of the license and are unable to\n+ * obtain it through the world-wide-web, please send an email\n+ * to license@prestashop.com so we can send you a copy immediately.\n+ *\n+ * DISCLAIMER\n+ *\n+ * Do not edit or add to this file if you wish to upgrade PrestaShop to newer\n+ * versions in the future. If you wish to customize PrestaShop for your\n+ * needs please refer to http://www.prestashop.com for more information.\n+ *\n+ * @author    PrestaShop SA <contact@prestashop.com>\n+ * @copyright 2007-2018 PrestaShop SA\n+ * @license   https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)\n+ * International Registered Trademark & Property of PrestaShop SA\n+ */\n+\n+namespace PrestaShop\\PrestaShop\\Core\\Cache\\Clearer;\n+\n+/**\n+ * Class EntireCacheClearer clears entire PrestaShop cache.\n+ */\n+final class EntireCacheClearer implements CacheClearerInterface\n+{\n+    /**\n+     * @var CacheClearerInterface[]\n+     */\n+    private $cacheClearers;\n+\n+    /**\n+     * @param CacheClearerInterface ...$cacheClearers\n+     */\n+    public function __construct(CacheClearerInterface ...$cacheClearers)\n+    {\n+        $this->cacheClearers = $cacheClearers;\n+    }\n+","path":"src/Core/Cache/Clearer/EntireCacheClearer.php","position":46,"original_position":46,"commit_id":"abb7629a08a78d4d6a7d9e26c514d53f9aa261e9","original_commit_id":"abb7629a08a78d4d6a7d9e26c514d53f9aa261e9","user":{"login":"sarjon","id":15143151,"node_id":"MDQ6VXNlcjE1MTQzMTUx","avatar_url":"https://avatars3.githubusercontent.com/u/15143151?v=4","gravatar_id":"","url":"https://api.github.com/users/sarjon","html_url":"https://github.com/sarjon","followers_url":"https://api.github.com/users/sarjon/followers","following_url":"https://api.github.com/users/sarjon/following{/other_user}","gists_url":"https://api.github.com/users/sarjon/gists{/gist_id}","starred_url":"https://api.github.com/users/sarjon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarjon/subscriptions","organizations_url":"https://api.github.com/users/sarjon/orgs","repos_url":"https://api.github.com/users/sarjon/repos","events_url":"https://api.github.com/users/sarjon/events{/privacy}","received_events_url":"https://api.github.com/users/sarjon/received_events","type":"User","site_admin":false},"body":"hmm, this would require updating interface which is not relevant for other clearers. :/","created_at":"2018-10-03T11:29:16Z","updated_at":"2018-10-03T11:29:16Z","html_url":"https://github.com/PrestaShop/PrestaShop/pull/10770#discussion_r222273938","pull_request_url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/10770","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/comments/222273938"},"html":{"href":"https://github.com/PrestaShop/PrestaShop/pull/10770#discussion_r222273938"},"pull_request":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/10770"}},"in_reply_to_id":221894918},"pull_request":{"url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/10770","id":219136067,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5MTM2MDY3","html_url":"https://github.com/PrestaShop/PrestaShop/pull/10770","diff_url":"https://github.com/PrestaShop/PrestaShop/pull/10770.diff","patch_url":"https://github.com/PrestaShop/PrestaShop/pull/10770.patch","issue_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/10770","number":10770,"state":"open","locked":false,"title":"Update CacheClearer adapter","user":{"login":"sarjon","id":15143151,"node_id":"MDQ6VXNlcjE1MTQzMTUx","avatar_url":"https://avatars3.githubusercontent.com/u/15143151?v=4","gravatar_id":"","url":"https://api.github.com/users/sarjon","html_url":"https://github.com/sarjon","followers_url":"https://api.github.com/users/sarjon/followers","following_url":"https://api.github.com/users/sarjon/following{/other_user}","gists_url":"https://api.github.com/users/sarjon/gists{/gist_id}","starred_url":"https://api.github.com/users/sarjon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarjon/subscriptions","organizations_url":"https://api.github.com/users/sarjon/orgs","repos_url":"https://api.github.com/users/sarjon/repos","events_url":"https://api.github.com/users/sarjon/events{/privacy}","received_events_url":"https://api.github.com/users/sarjon/received_events","type":"User","site_admin":false},"body":"<!--\r\nThank you for contributing to the PrestaShop project! \r\n\r\nPlease take the time to edit the \"Answers\" rows with the necessary information.\r\n\r\nCheck out our contribution guidelines to find out how to complete it:\r\nhttps://devdocs.prestashop.com/1.7/contribute/contribution-guidelines/#pull-requests\r\n -->\r\n\r\n| Questions     | Answers\r\n| ------------- | -------------------------------------------------------\r\n| Branch?       | develop\r\n| Description?  | When working with cache clearer i noticed that it does not provide clear interface for that. This PR aims to do that.\r\n| Type?         | improvement\r\n| Category?     | CO\r\n| BC breaks?    | no\r\n| Deprecations? | yes\r\n| Fixed ticket? | n/a\r\n| How to test?  | See code changes. Back Office behavior is not changed.\r\n\r\n<!-- Click the form's \"Preview\" button to make sure the table is functional in GitHub. Thank you! -->\n\n<!-- Reviewable:start -->\n---\nThis change is [<img src=\"https://reviewable.io/review_button.svg\" height=\"34\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.io/reviews/prestashop/prestashop/10770)\n<!-- Reviewable:end -->\n","created_at":"2018-09-29T08:58:43Z","updated_at":"2018-10-03T11:29:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"419388b5ccf5e4adb552bfbc018da7c3d743da4e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":19737371,"node_id":"MDU6TGFiZWwxOTczNzM3MQ==","url":"https://api.github.com/repos/PrestaShop/PrestaShop/labels/Improvement","name":"Improvement","color":"d4c5f9","default":false},{"id":904910825,"node_id":"MDU6TGFiZWw5MDQ5MTA4MjU=","url":"https://api.github.com/repos/PrestaShop/PrestaShop/labels/develop","name":"develop","color":"6270ea","default":false},{"id":1039184119,"node_id":"MDU6TGFiZWwxMDM5MTg0MTE5","url":"https://api.github.com/repos/PrestaShop/PrestaShop/labels/migration","name":"migration","color":"06e032","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/10770/commits","review_comments_url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/10770/comments","review_comment_url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/10770/comments","statuses_url":"https://api.github.com/repos/PrestaShop/PrestaShop/statuses/abb7629a08a78d4d6a7d9e26c514d53f9aa261e9","head":{"label":"sarjon:cache-clearer-implementation","ref":"cache-clearer-implementation","sha":"abb7629a08a78d4d6a7d9e26c514d53f9aa261e9","user":{"login":"sarjon","id":15143151,"node_id":"MDQ6VXNlcjE1MTQzMTUx","avatar_url":"https://avatars3.githubusercontent.com/u/15143151?v=4","gravatar_id":"","url":"https://api.github.com/users/sarjon","html_url":"https://github.com/sarjon","followers_url":"https://api.github.com/users/sarjon/followers","following_url":"https://api.github.com/users/sarjon/following{/other_user}","gists_url":"https://api.github.com/users/sarjon/gists{/gist_id}","starred_url":"https://api.github.com/users/sarjon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarjon/subscriptions","organizations_url":"https://api.github.com/users/sarjon/orgs","repos_url":"https://api.github.com/users/sarjon/repos","events_url":"https://api.github.com/users/sarjon/events{/privacy}","received_events_url":"https://api.github.com/users/sarjon/received_events","type":"User","site_admin":false},"repo":{"id":77449609,"node_id":"MDEwOlJlcG9zaXRvcnk3NzQ0OTYwOQ==","name":"PrestaShop","full_name":"sarjon/PrestaShop","private":false,"owner":{"login":"sarjon","id":15143151,"node_id":"MDQ6VXNlcjE1MTQzMTUx","avatar_url":"https://avatars3.githubusercontent.com/u/15143151?v=4","gravatar_id":"","url":"https://api.github.com/users/sarjon","html_url":"https://github.com/sarjon","followers_url":"https://api.github.com/users/sarjon/followers","following_url":"https://api.github.com/users/sarjon/following{/other_user}","gists_url":"https://api.github.com/users/sarjon/gists{/gist_id}","starred_url":"https://api.github.com/users/sarjon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarjon/subscriptions","organizations_url":"https://api.github.com/users/sarjon/orgs","repos_url":"https://api.github.com/users/sarjon/repos","events_url":"https://api.github.com/users/sarjon/events{/privacy}","received_events_url":"https://api.github.com/users/sarjon/received_events","type":"User","site_admin":false},"html_url":"https://github.com/sarjon/PrestaShop","description":"PrestaShop offers a free, fully scalable, Open Source e-commerce solution.","fork":true,"url":"https://api.github.com/repos/sarjon/PrestaShop","forks_url":"https://api.github.com/repos/sarjon/PrestaShop/forks","keys_url":"https://api.github.com/repos/sarjon/PrestaShop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sarjon/PrestaShop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sarjon/PrestaShop/teams","hooks_url":"https://api.github.com/repos/sarjon/PrestaShop/hooks","issue_events_url":"https://api.github.com/repos/sarjon/PrestaShop/issues/events{/number}","events_url":"https://api.github.com/repos/sarjon/PrestaShop/events","assignees_url":"https://api.github.com/repos/sarjon/PrestaShop/assignees{/user}","branches_url":"https://api.github.com/repos/sarjon/PrestaShop/branches{/branch}","tags_url":"https://api.github.com/repos/sarjon/PrestaShop/tags","blobs_url":"https://api.github.com/repos/sarjon/PrestaShop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sarjon/PrestaShop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sarjon/PrestaShop/git/refs{/sha}","trees_url":"https://api.github.com/repos/sarjon/PrestaShop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sarjon/PrestaShop/statuses/{sha}","languages_url":"https://api.github.com/repos/sarjon/PrestaShop/languages","stargazers_url":"https://api.github.com/repos/sarjon/PrestaShop/stargazers","contributors_url":"https://api.github.com/repos/sarjon/PrestaShop/contributors","subscribers_url":"https://api.github.com/repos/sarjon/PrestaShop/subscribers","subscription_url":"https://api.github.com/repos/sarjon/PrestaShop/subscription","commits_url":"https://api.github.com/repos/sarjon/PrestaShop/commits{/sha}","git_commits_url":"https://api.github.com/repos/sarjon/PrestaShop/git/commits{/sha}","comments_url":"https://api.github.com/repos/sarjon/PrestaShop/comments{/number}","issue_comment_url":"https://api.github.com/repos/sarjon/PrestaShop/issues/comments{/number}","contents_url":"https://api.github.com/repos/sarjon/PrestaShop/contents/{+path}","compare_url":"https://api.github.com/repos/sarjon/PrestaShop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sarjon/PrestaShop/merges","archive_url":"https://api.github.com/repos/sarjon/PrestaShop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sarjon/PrestaShop/downloads","issues_url":"https://api.github.com/repos/sarjon/PrestaShop/issues{/number}","pulls_url":"https://api.github.com/repos/sarjon/PrestaShop/pulls{/number}","milestones_url":"https://api.github.com/repos/sarjon/PrestaShop/milestones{/number}","notifications_url":"https://api.github.com/repos/sarjon/PrestaShop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sarjon/PrestaShop/labels{/name}","releases_url":"https://api.github.com/repos/sarjon/PrestaShop/releases{/id}","deployments_url":"https://api.github.com/repos/sarjon/PrestaShop/deployments","created_at":"2016-12-27T11:12:19Z","updated_at":"2018-09-30T13:03:06Z","pushed_at":"2018-10-03T11:18:25Z","git_url":"git://github.com/sarjon/PrestaShop.git","ssh_url":"git@github.com:sarjon/PrestaShop.git","clone_url":"https://github.com/sarjon/PrestaShop.git","svn_url":"https://github.com/sarjon/PrestaShop","homepage":"http://www.prestashop.com/","size":334680,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"NOASSERTION","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"PrestaShop:develop","ref":"develop","sha":"c7928afffbc2234c59d3024c417de14bc4459f65","user":{"login":"PrestaShop","id":2815696,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4MTU2OTY=","avatar_url":"https://avatars3.githubusercontent.com/u/2815696?v=4","gravatar_id":"","url":"https://api.github.com/users/PrestaShop","html_url":"https://github.com/PrestaShop","followers_url":"https://api.github.com/users/PrestaShop/followers","following_url":"https://api.github.com/users/PrestaShop/following{/other_user}","gists_url":"https://api.github.com/users/PrestaShop/gists{/gist_id}","starred_url":"https://api.github.com/users/PrestaShop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PrestaShop/subscriptions","organizations_url":"https://api.github.com/users/PrestaShop/orgs","repos_url":"https://api.github.com/users/PrestaShop/repos","events_url":"https://api.github.com/users/PrestaShop/events{/privacy}","received_events_url":"https://api.github.com/users/PrestaShop/received_events","type":"Organization","site_admin":false},"repo":{"id":6763587,"node_id":"MDEwOlJlcG9zaXRvcnk2NzYzNTg3","name":"PrestaShop","full_name":"PrestaShop/PrestaShop","private":false,"owner":{"login":"PrestaShop","id":2815696,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4MTU2OTY=","avatar_url":"https://avatars3.githubusercontent.com/u/2815696?v=4","gravatar_id":"","url":"https://api.github.com/users/PrestaShop","html_url":"https://github.com/PrestaShop","followers_url":"https://api.github.com/users/PrestaShop/followers","following_url":"https://api.github.com/users/PrestaShop/following{/other_user}","gists_url":"https://api.github.com/users/PrestaShop/gists{/gist_id}","starred_url":"https://api.github.com/users/PrestaShop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PrestaShop/subscriptions","organizations_url":"https://api.github.com/users/PrestaShop/orgs","repos_url":"https://api.github.com/users/PrestaShop/repos","events_url":"https://api.github.com/users/PrestaShop/events{/privacy}","received_events_url":"https://api.github.com/users/PrestaShop/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/PrestaShop/PrestaShop","description":"PrestaShop offers a fully scalable open source ecommerce solution.","fork":false,"url":"https://api.github.com/repos/PrestaShop/PrestaShop","forks_url":"https://api.github.com/repos/PrestaShop/PrestaShop/forks","keys_url":"https://api.github.com/repos/PrestaShop/PrestaShop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PrestaShop/PrestaShop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PrestaShop/PrestaShop/teams","hooks_url":"https://api.github.com/repos/PrestaShop/PrestaShop/hooks","issue_events_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/events{/number}","events_url":"https://api.github.com/repos/PrestaShop/PrestaShop/events","assignees_url":"https://api.github.com/repos/PrestaShop/PrestaShop/assignees{/user}","branches_url":"https://api.github.com/repos/PrestaShop/PrestaShop/branches{/branch}","tags_url":"https://api.github.com/repos/PrestaShop/PrestaShop/tags","blobs_url":"https://api.github.com/repos/PrestaShop/PrestaShop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PrestaShop/PrestaShop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PrestaShop/PrestaShop/git/refs{/sha}","trees_url":"https://api.github.com/repos/PrestaShop/PrestaShop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PrestaShop/PrestaShop/statuses/{sha}","languages_url":"https://api.github.com/repos/PrestaShop/PrestaShop/languages","stargazers_url":"https://api.github.com/repos/PrestaShop/PrestaShop/stargazers","contributors_url":"https://api.github.com/repos/PrestaShop/PrestaShop/contributors","subscribers_url":"https://api.github.com/repos/PrestaShop/PrestaShop/subscribers","subscription_url":"https://api.github.com/repos/PrestaShop/PrestaShop/subscription","commits_url":"https://api.github.com/repos/PrestaShop/PrestaShop/commits{/sha}","git_commits_url":"https://api.github.com/repos/PrestaShop/PrestaShop/git/commits{/sha}","comments_url":"https://api.github.com/repos/PrestaShop/PrestaShop/comments{/number}","issue_comment_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/comments{/number}","contents_url":"https://api.github.com/repos/PrestaShop/PrestaShop/contents/{+path}","compare_url":"https://api.github.com/repos/PrestaShop/PrestaShop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PrestaShop/PrestaShop/merges","archive_url":"https://api.github.com/repos/PrestaShop/PrestaShop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PrestaShop/PrestaShop/downloads","issues_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues{/number}","pulls_url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls{/number}","milestones_url":"https://api.github.com/repos/PrestaShop/PrestaShop/milestones{/number}","notifications_url":"https://api.github.com/repos/PrestaShop/PrestaShop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PrestaShop/PrestaShop/labels{/name}","releases_url":"https://api.github.com/repos/PrestaShop/PrestaShop/releases{/id}","deployments_url":"https://api.github.com/repos/PrestaShop/PrestaShop/deployments","created_at":"2012-11-19T16:41:31Z","updated_at":"2018-10-02T16:36:50Z","pushed_at":"2018-10-03T11:23:41Z","git_url":"git://github.com/PrestaShop/PrestaShop.git","ssh_url":"git@github.com:PrestaShop/PrestaShop.git","clone_url":"https://github.com/PrestaShop/PrestaShop.git","svn_url":"https://github.com/PrestaShop/PrestaShop","homepage":"http://www.prestashop.com/","size":370291,"stargazers_count":3200,"watchers_count":3200,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2914,"mirror_url":null,"archived":false,"open_issues_count":1129,"license":{"key":"other","name":"NOASSERTION","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":2914,"open_issues":1129,"watchers":3200,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/10770"},"html":{"href":"https://github.com/PrestaShop/PrestaShop/pull/10770"},"issue":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/10770"},"comments":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/10770/comments"},"review_comments":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/10770/comments"},"review_comment":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/10770/commits"},"statuses":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/statuses/abb7629a08a78d4d6a7d9e26c514d53f9aa261e9"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"sarjon"}}