{"action":"created","comment":{"url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/pulls/comments/32385294","id":32385294,"diff_hunk":"@@ -0,0 +1,83 @@\n+<?php\n+\n+namespace Sonata\\BlockBundle\\Cache;\n+\n+use Sonata\\BlockBundle\\Model\\BlockInterface;\n+use Sonata\\BlockBundle\\Block\\BlockContextManagerInterface;\n+use Sonata\\Cache\\CacheManagerInterface;\n+use Doctrine\\Common\\Util\\ClassUtils;\n+\n+class BlockCacheManager implements BlockCacheManagerInterface\n+{\n+    /** @var  array */\n+    protected $cacheBlocks;\n+\n+    /** @var  BlockContextManagerInterface */\n+    protected $blockContextManager;\n+\n+    /** @var  CacheManagerInterface */\n+    protected $cacheManager;\n+\n+    public function __construct(array $cacheBlocks, BlockContextManagerInterface $blockContextManager)\n+    {\n+        $this->cacheBlocks         = $cacheBlocks;\n+        $this->blockContextManager = $blockContextManager;\n+    }\n+\n+    /**\n+     * {@inheritdoc}\n+     */\n+    public function setBlockToCache(BlockInterface $block)\n+    {\n+        // TODO: Implement setBlockToCache() method.\n+    }\n+\n+    /** {@inheritdoc} */","path":"Cache/BlockCacheManager.php","position":35,"original_position":35,"commit_id":"1b26963b4e8c6031ebea96ab702bff998dc7e058","original_commit_id":"1b26963b4e8c6031ebea96ab702bff998dc7e058","user":{"login":"Soullivaneuh","id":1698357,"avatar_url":"https://avatars.githubusercontent.com/u/1698357?v=3","gravatar_id":"","url":"https://api.github.com/users/Soullivaneuh","html_url":"https://github.com/Soullivaneuh","followers_url":"https://api.github.com/users/Soullivaneuh/followers","following_url":"https://api.github.com/users/Soullivaneuh/following{/other_user}","gists_url":"https://api.github.com/users/Soullivaneuh/gists{/gist_id}","starred_url":"https://api.github.com/users/Soullivaneuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Soullivaneuh/subscriptions","organizations_url":"https://api.github.com/users/Soullivaneuh/orgs","repos_url":"https://api.github.com/users/Soullivaneuh/repos","events_url":"https://api.github.com/users/Soullivaneuh/events{/privacy}","received_events_url":"https://api.github.com/users/Soullivaneuh/received_events","type":"User","site_admin":false},"body":"Should looks like:\r\n\r\n```php\r\n/**\r\n * {@inheritdoc}\r\n */\r\n```","created_at":"2015-06-14T22:36:35Z","updated_at":"2015-06-14T22:36:35Z","html_url":"https://github.com/sonata-project/SonataBlockBundle/pull/160#discussion_r32385294","pull_request_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/pulls/160","_links":{"self":{"href":"https://api.github.com/repos/sonata-project/SonataBlockBundle/pulls/comments/32385294"},"html":{"href":"https://github.com/sonata-project/SonataBlockBundle/pull/160#discussion_r32385294"},"pull_request":{"href":"https://api.github.com/repos/sonata-project/SonataBlockBundle/pulls/160"}}},"pull_request":{"url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/pulls/160","id":17460382,"html_url":"https://github.com/sonata-project/SonataBlockBundle/pull/160","diff_url":"https://github.com/sonata-project/SonataBlockBundle/pull/160.diff","patch_url":"https://github.com/sonata-project/SonataBlockBundle/pull/160.patch","issue_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/issues/160","number":160,"state":"open","locked":false,"title":"Added BlockCacheManagerInterface and its implementation","user":{"login":"spolischook","id":1978331,"avatar_url":"https://avatars.githubusercontent.com/u/1978331?v=3","gravatar_id":"","url":"https://api.github.com/users/spolischook","html_url":"https://github.com/spolischook","followers_url":"https://api.github.com/users/spolischook/followers","following_url":"https://api.github.com/users/spolischook/following{/other_user}","gists_url":"https://api.github.com/users/spolischook/gists{/gist_id}","starred_url":"https://api.github.com/users/spolischook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spolischook/subscriptions","organizations_url":"https://api.github.com/users/spolischook/orgs","repos_url":"https://api.github.com/users/spolischook/repos","events_url":"https://api.github.com/users/spolischook/events{/privacy}","received_events_url":"https://api.github.com/users/spolischook/received_events","type":"User","site_admin":false},"body":"Related to this issue https://github.com/sonata-project/SonataBlockBundle/issues/159","created_at":"2014-06-23T07:50:12Z","updated_at":"2015-06-14T22:36:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3e43fab133672c5d438195082de78071b398f9cc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/pulls/160/commits","review_comments_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/pulls/160/comments","review_comment_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/issues/160/comments","statuses_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/statuses/1b26963b4e8c6031ebea96ab702bff998dc7e058","head":{"label":"spolischook:added-cache-block-manager","ref":"added-cache-block-manager","sha":"1b26963b4e8c6031ebea96ab702bff998dc7e058","user":{"login":"spolischook","id":1978331,"avatar_url":"https://avatars.githubusercontent.com/u/1978331?v=3","gravatar_id":"","url":"https://api.github.com/users/spolischook","html_url":"https://github.com/spolischook","followers_url":"https://api.github.com/users/spolischook/followers","following_url":"https://api.github.com/users/spolischook/following{/other_user}","gists_url":"https://api.github.com/users/spolischook/gists{/gist_id}","starred_url":"https://api.github.com/users/spolischook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spolischook/subscriptions","organizations_url":"https://api.github.com/users/spolischook/orgs","repos_url":"https://api.github.com/users/spolischook/repos","events_url":"https://api.github.com/users/spolischook/events{/privacy}","received_events_url":"https://api.github.com/users/spolischook/received_events","type":"User","site_admin":false},"repo":{"id":21117731,"name":"SonataBlockBundle","full_name":"spolischook/SonataBlockBundle","owner":{"login":"spolischook","id":1978331,"avatar_url":"https://avatars.githubusercontent.com/u/1978331?v=3","gravatar_id":"","url":"https://api.github.com/users/spolischook","html_url":"https://github.com/spolischook","followers_url":"https://api.github.com/users/spolischook/followers","following_url":"https://api.github.com/users/spolischook/following{/other_user}","gists_url":"https://api.github.com/users/spolischook/gists{/gist_id}","starred_url":"https://api.github.com/users/spolischook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spolischook/subscriptions","organizations_url":"https://api.github.com/users/spolischook/orgs","repos_url":"https://api.github.com/users/spolischook/repos","events_url":"https://api.github.com/users/spolischook/events{/privacy}","received_events_url":"https://api.github.com/users/spolischook/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/spolischook/SonataBlockBundle","description":"Foundation to build HMVC layout","fork":true,"url":"https://api.github.com/repos/spolischook/SonataBlockBundle","forks_url":"https://api.github.com/repos/spolischook/SonataBlockBundle/forks","keys_url":"https://api.github.com/repos/spolischook/SonataBlockBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spolischook/SonataBlockBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spolischook/SonataBlockBundle/teams","hooks_url":"https://api.github.com/repos/spolischook/SonataBlockBundle/hooks","issue_events_url":"https://api.github.com/repos/spolischook/SonataBlockBundle/issues/events{/number}","events_url":"https://api.github.com/repos/spolischook/SonataBlockBundle/events","assignees_url":"https://api.github.com/repos/spolischook/SonataBlockBundle/assignees{/user}","branches_url":"https://api.github.com/repos/spolischook/SonataBlockBundle/branches{/branch}","tags_url":"https://api.github.com/repos/spolischook/SonataBlockBundle/tags","blobs_url":"https://api.github.com/repos/spolischook/SonataBlockBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spolischook/SonataBlockBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spolischook/SonataBlockBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/spolischook/SonataBlockBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spolischook/SonataBlockBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/spolischook/SonataBlockBundle/languages","stargazers_url":"https://api.github.com/repos/spolischook/SonataBlockBundle/stargazers","contributors_url":"https://api.github.com/repos/spolischook/SonataBlockBundle/contributors","subscribers_url":"https://api.github.com/repos/spolischook/SonataBlockBundle/subscribers","subscription_url":"https://api.github.com/repos/spolischook/SonataBlockBundle/subscription","commits_url":"https://api.github.com/repos/spolischook/SonataBlockBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/spolischook/SonataBlockBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/spolischook/SonataBlockBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/spolischook/SonataBlockBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/spolischook/SonataBlockBundle/contents/{+path}","compare_url":"https://api.github.com/repos/spolischook/SonataBlockBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spolischook/SonataBlockBundle/merges","archive_url":"https://api.github.com/repos/spolischook/SonataBlockBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spolischook/SonataBlockBundle/downloads","issues_url":"https://api.github.com/repos/spolischook/SonataBlockBundle/issues{/number}","pulls_url":"https://api.github.com/repos/spolischook/SonataBlockBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/spolischook/SonataBlockBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/spolischook/SonataBlockBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spolischook/SonataBlockBundle/labels{/name}","releases_url":"https://api.github.com/repos/spolischook/SonataBlockBundle/releases{/id}","created_at":"2014-06-23T07:35:04Z","updated_at":"2014-06-23T16:59:32Z","pushed_at":"2014-06-23T16:59:30Z","git_url":"git://github.com/spolischook/SonataBlockBundle.git","ssh_url":"git@github.com:spolischook/SonataBlockBundle.git","clone_url":"https://github.com/spolischook/SonataBlockBundle.git","svn_url":"https://github.com/spolischook/SonataBlockBundle","homepage":"http://sonata-project.org/bundles/block","size":1027,"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":"sonata-project:master","ref":"master","sha":"2bacc827aba3a73bc8cabaa9517627755f29c255","user":{"login":"sonata-project","id":404157,"avatar_url":"https://avatars.githubusercontent.com/u/404157?v=3","gravatar_id":"","url":"https://api.github.com/users/sonata-project","html_url":"https://github.com/sonata-project","followers_url":"https://api.github.com/users/sonata-project/followers","following_url":"https://api.github.com/users/sonata-project/following{/other_user}","gists_url":"https://api.github.com/users/sonata-project/gists{/gist_id}","starred_url":"https://api.github.com/users/sonata-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonata-project/subscriptions","organizations_url":"https://api.github.com/users/sonata-project/orgs","repos_url":"https://api.github.com/users/sonata-project/repos","events_url":"https://api.github.com/users/sonata-project/events{/privacy}","received_events_url":"https://api.github.com/users/sonata-project/received_events","type":"Organization","site_admin":false},"repo":{"id":3409083,"name":"SonataBlockBundle","full_name":"sonata-project/SonataBlockBundle","owner":{"login":"sonata-project","id":404157,"avatar_url":"https://avatars.githubusercontent.com/u/404157?v=3","gravatar_id":"","url":"https://api.github.com/users/sonata-project","html_url":"https://github.com/sonata-project","followers_url":"https://api.github.com/users/sonata-project/followers","following_url":"https://api.github.com/users/sonata-project/following{/other_user}","gists_url":"https://api.github.com/users/sonata-project/gists{/gist_id}","starred_url":"https://api.github.com/users/sonata-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonata-project/subscriptions","organizations_url":"https://api.github.com/users/sonata-project/orgs","repos_url":"https://api.github.com/users/sonata-project/repos","events_url":"https://api.github.com/users/sonata-project/events{/privacy}","received_events_url":"https://api.github.com/users/sonata-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sonata-project/SonataBlockBundle","description":"Foundation to build HMVC layout","fork":false,"url":"https://api.github.com/repos/sonata-project/SonataBlockBundle","forks_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/forks","keys_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/teams","hooks_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/hooks","issue_events_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/issues/events{/number}","events_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/events","assignees_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/assignees{/user}","branches_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/branches{/branch}","tags_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/tags","blobs_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/languages","stargazers_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/stargazers","contributors_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/contributors","subscribers_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/subscribers","subscription_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/subscription","commits_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/contents/{+path}","compare_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/merges","archive_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/downloads","issues_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/issues{/number}","pulls_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/labels{/name}","releases_url":"https://api.github.com/repos/sonata-project/SonataBlockBundle/releases{/id}","created_at":"2012-02-10T17:02:25Z","updated_at":"2015-06-05T17:09:38Z","pushed_at":"2015-06-14T22:34:08Z","git_url":"git://github.com/sonata-project/SonataBlockBundle.git","ssh_url":"git@github.com:sonata-project/SonataBlockBundle.git","clone_url":"https://github.com/sonata-project/SonataBlockBundle.git","svn_url":"https://github.com/sonata-project/SonataBlockBundle","homepage":"http://sonata-project.org/bundles/block","size":2311,"stargazers_count":52,"watchers_count":52,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":83,"mirror_url":null,"open_issues_count":11,"forks":83,"open_issues":11,"watchers":52,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sonata-project/SonataBlockBundle/pulls/160"},"html":{"href":"https://github.com/sonata-project/SonataBlockBundle/pull/160"},"issue":{"href":"https://api.github.com/repos/sonata-project/SonataBlockBundle/issues/160"},"comments":{"href":"https://api.github.com/repos/sonata-project/SonataBlockBundle/issues/160/comments"},"review_comments":{"href":"https://api.github.com/repos/sonata-project/SonataBlockBundle/pulls/160/comments"},"review_comment":{"href":"https://api.github.com/repos/sonata-project/SonataBlockBundle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sonata-project/SonataBlockBundle/pulls/160/commits"},"statuses":{"href":"https://api.github.com/repos/sonata-project/SonataBlockBundle/statuses/1b26963b4e8c6031ebea96ab702bff998dc7e058"}}}}