{"action":"created","comment":{"url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/pulls/comments/67599849","id":67599849,"diff_hunk":"@@ -0,0 +1,84 @@\n+<?php\n+\n+/*\n+ * This file is part of the Sonata Project package.\n+ *\n+ * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>\n+ *\n+ * For the full copyright and license information, please view the LICENSE\n+ * file that was distributed with this source code.\n+ */\n+\n+namespace Sonata\\DashboardBundle\\CmsManager;\n+\n+use Sonata\\BlockBundle\\Model\\BlockInterface;\n+use Sonata\\DashboardBundle\\Model\\DashboardInterface;\n+use Symfony\\Component\\HttpFoundation\\Request;\n+\n+/**\n+ * The CmsManagerInterface class is in charge of retrieving the correct dashboard.\n+ *\n+ * @author Thomas Rabaix <thomas.rabaix@sonata-project.org>\n+ */\n+interface CmsManagerInterface\n+{\n+    /**\n+     * @param string              $name\n+     * @param DashboardInterface  $dashboard\n+     * @param null|BlockInterface $parentContainer\n+     *\n+     * @return bool|null|BlockInterface\n+     */\n+    public function findContainer($name, DashboardInterface $dashboard, BlockInterface $parentContainer = null);\n+\n+    /**\n+     * Returns a fully loaded dashboard ( + blocks ) from a name.\n+     *\n+     * @param string $name\n+     *\n+     * @return DashboardInterface\n+     */\n+    public function getDashboardByName($name);\n+\n+    /**\n+     * Returns a fully loaded pag ( + blocks ) from a dashboard id.","path":"CmsManager/CmsManagerInterface.php","position":44,"original_position":44,"commit_id":"bcfc16ab465e47a0602c4d5f109d03b8d8836f48","original_commit_id":"bcfc16ab465e47a0602c4d5f109d03b8d8836f48","user":{"login":"core23","id":3440437,"avatar_url":"https://avatars.githubusercontent.com/u/3440437?v=3","gravatar_id":"","url":"https://api.github.com/users/core23","html_url":"https://github.com/core23","followers_url":"https://api.github.com/users/core23/followers","following_url":"https://api.github.com/users/core23/following{/other_user}","gists_url":"https://api.github.com/users/core23/gists{/gist_id}","starred_url":"https://api.github.com/users/core23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/core23/subscriptions","organizations_url":"https://api.github.com/users/core23/orgs","repos_url":"https://api.github.com/users/core23/repos","events_url":"https://api.github.com/users/core23/events{/privacy}","received_events_url":"https://api.github.com/users/core23/received_events","type":"User","site_admin":false},"body":"No space in the brackets.","created_at":"2016-06-18T11:38:24Z","updated_at":"2016-06-18T11:38:24Z","html_url":"https://github.com/sonata-project/SonataDashboardBundle/pull/57#discussion_r67599849","pull_request_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/pulls/57","_links":{"self":{"href":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/pulls/comments/67599849"},"html":{"href":"https://github.com/sonata-project/SonataDashboardBundle/pull/57#discussion_r67599849"},"pull_request":{"href":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/pulls/57"}}},"pull_request":{"url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/pulls/57","id":74317323,"html_url":"https://github.com/sonata-project/SonataDashboardBundle/pull/57","diff_url":"https://github.com/sonata-project/SonataDashboardBundle/pull/57.diff","patch_url":"https://github.com/sonata-project/SonataDashboardBundle/pull/57.patch","issue_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/issues/57","number":57,"state":"open","locked":false,"title":"CmsManager","user":{"login":"stphnpt","id":6461942,"avatar_url":"https://avatars.githubusercontent.com/u/6461942?v=3","gravatar_id":"","url":"https://api.github.com/users/stphnpt","html_url":"https://github.com/stphnpt","followers_url":"https://api.github.com/users/stphnpt/followers","following_url":"https://api.github.com/users/stphnpt/following{/other_user}","gists_url":"https://api.github.com/users/stphnpt/gists{/gist_id}","starred_url":"https://api.github.com/users/stphnpt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stphnpt/subscriptions","organizations_url":"https://api.github.com/users/stphnpt/orgs","repos_url":"https://api.github.com/users/stphnpt/repos","events_url":"https://api.github.com/users/stphnpt/events{/privacy}","received_events_url":"https://api.github.com/users/stphnpt/received_events","type":"User","site_admin":false},"body":"<!-- THE PR TEMPLATE IS NOT AN OPTION. DO NOT DELETE IT! -->\r\n\r\n\r\n## Changelog\r\n\r\n<!-- MANDATORY\r\n    Fill the changelog part inside the code block.\r\n    Follow this schema: http://keepachangelog.com/\r\n-->\r\n\r\n<!-- REMOVE EMPTY SECTIONS -->\r\n```markdown\r\n### Added\r\n- Added Cms Manager\r\n```\r\n\r\n## To do\r\n\r\n- [x] Add a twig extension to use it\r\n\r\n## Subject\r\n\r\nAdded CmsDashboardManager in the same spirit\r\nas CmsPageManager in SonataPageBundle\r\n","created_at":"2016-06-17T23:13:12Z","updated_at":"2016-06-18T11:38:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"161e61fd04cb3021cc6140c9c483d614efdb849c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/pulls/57/commits","review_comments_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/pulls/57/comments","review_comment_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/issues/57/comments","statuses_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/statuses/bcfc16ab465e47a0602c4d5f109d03b8d8836f48","head":{"label":"stphnpt:feature","ref":"feature","sha":"bcfc16ab465e47a0602c4d5f109d03b8d8836f48","user":{"login":"stphnpt","id":6461942,"avatar_url":"https://avatars.githubusercontent.com/u/6461942?v=3","gravatar_id":"","url":"https://api.github.com/users/stphnpt","html_url":"https://github.com/stphnpt","followers_url":"https://api.github.com/users/stphnpt/followers","following_url":"https://api.github.com/users/stphnpt/following{/other_user}","gists_url":"https://api.github.com/users/stphnpt/gists{/gist_id}","starred_url":"https://api.github.com/users/stphnpt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stphnpt/subscriptions","organizations_url":"https://api.github.com/users/stphnpt/orgs","repos_url":"https://api.github.com/users/stphnpt/repos","events_url":"https://api.github.com/users/stphnpt/events{/privacy}","received_events_url":"https://api.github.com/users/stphnpt/received_events","type":"User","site_admin":false},"repo":{"id":60699129,"name":"SonataDashboardBundle","full_name":"stphnpt/SonataDashboardBundle","owner":{"login":"stphnpt","id":6461942,"avatar_url":"https://avatars.githubusercontent.com/u/6461942?v=3","gravatar_id":"","url":"https://api.github.com/users/stphnpt","html_url":"https://github.com/stphnpt","followers_url":"https://api.github.com/users/stphnpt/followers","following_url":"https://api.github.com/users/stphnpt/following{/other_user}","gists_url":"https://api.github.com/users/stphnpt/gists{/gist_id}","starred_url":"https://api.github.com/users/stphnpt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stphnpt/subscriptions","organizations_url":"https://api.github.com/users/stphnpt/orgs","repos_url":"https://api.github.com/users/stphnpt/repos","events_url":"https://api.github.com/users/stphnpt/events{/privacy}","received_events_url":"https://api.github.com/users/stphnpt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stphnpt/SonataDashboardBundle","description":"[wip] User manageable dashboard","fork":true,"url":"https://api.github.com/repos/stphnpt/SonataDashboardBundle","forks_url":"https://api.github.com/repos/stphnpt/SonataDashboardBundle/forks","keys_url":"https://api.github.com/repos/stphnpt/SonataDashboardBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stphnpt/SonataDashboardBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stphnpt/SonataDashboardBundle/teams","hooks_url":"https://api.github.com/repos/stphnpt/SonataDashboardBundle/hooks","issue_events_url":"https://api.github.com/repos/stphnpt/SonataDashboardBundle/issues/events{/number}","events_url":"https://api.github.com/repos/stphnpt/SonataDashboardBundle/events","assignees_url":"https://api.github.com/repos/stphnpt/SonataDashboardBundle/assignees{/user}","branches_url":"https://api.github.com/repos/stphnpt/SonataDashboardBundle/branches{/branch}","tags_url":"https://api.github.com/repos/stphnpt/SonataDashboardBundle/tags","blobs_url":"https://api.github.com/repos/stphnpt/SonataDashboardBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stphnpt/SonataDashboardBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stphnpt/SonataDashboardBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/stphnpt/SonataDashboardBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stphnpt/SonataDashboardBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/stphnpt/SonataDashboardBundle/languages","stargazers_url":"https://api.github.com/repos/stphnpt/SonataDashboardBundle/stargazers","contributors_url":"https://api.github.com/repos/stphnpt/SonataDashboardBundle/contributors","subscribers_url":"https://api.github.com/repos/stphnpt/SonataDashboardBundle/subscribers","subscription_url":"https://api.github.com/repos/stphnpt/SonataDashboardBundle/subscription","commits_url":"https://api.github.com/repos/stphnpt/SonataDashboardBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/stphnpt/SonataDashboardBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/stphnpt/SonataDashboardBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/stphnpt/SonataDashboardBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/stphnpt/SonataDashboardBundle/contents/{+path}","compare_url":"https://api.github.com/repos/stphnpt/SonataDashboardBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stphnpt/SonataDashboardBundle/merges","archive_url":"https://api.github.com/repos/stphnpt/SonataDashboardBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stphnpt/SonataDashboardBundle/downloads","issues_url":"https://api.github.com/repos/stphnpt/SonataDashboardBundle/issues{/number}","pulls_url":"https://api.github.com/repos/stphnpt/SonataDashboardBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/stphnpt/SonataDashboardBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/stphnpt/SonataDashboardBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stphnpt/SonataDashboardBundle/labels{/name}","releases_url":"https://api.github.com/repos/stphnpt/SonataDashboardBundle/releases{/id}","deployments_url":"https://api.github.com/repos/stphnpt/SonataDashboardBundle/deployments","created_at":"2016-06-08T13:17:16Z","updated_at":"2016-06-08T13:17:17Z","pushed_at":"2016-06-18T11:34:56Z","git_url":"git://github.com/stphnpt/SonataDashboardBundle.git","ssh_url":"git@github.com:stphnpt/SonataDashboardBundle.git","clone_url":"https://github.com/stphnpt/SonataDashboardBundle.git","svn_url":"https://github.com/stphnpt/SonataDashboardBundle","homepage":" http://sonata-project.org/bundles/dashboard","size":394,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"1146cdb32a5eb31f34b35ff1540c1e77738900af","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":40255806,"name":"SonataDashboardBundle","full_name":"sonata-project/SonataDashboardBundle","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/SonataDashboardBundle","description":"[wip] User manageable dashboard","fork":false,"url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle","forks_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/forks","keys_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/teams","hooks_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/hooks","issue_events_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/issues/events{/number}","events_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/events","assignees_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/assignees{/user}","branches_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/branches{/branch}","tags_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/tags","blobs_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/languages","stargazers_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/stargazers","contributors_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/contributors","subscribers_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/subscribers","subscription_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/subscription","commits_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/contents/{+path}","compare_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/merges","archive_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/downloads","issues_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/issues{/number}","pulls_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/labels{/name}","releases_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/releases{/id}","deployments_url":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/deployments","created_at":"2015-08-05T16:19:30Z","updated_at":"2016-06-06T22:12:41Z","pushed_at":"2016-06-18T11:34:56Z","git_url":"git://github.com/sonata-project/SonataDashboardBundle.git","ssh_url":"git@github.com:sonata-project/SonataDashboardBundle.git","clone_url":"https://github.com/sonata-project/SonataDashboardBundle.git","svn_url":"https://github.com/sonata-project/SonataDashboardBundle","homepage":" http://sonata-project.org/bundles/dashboard","size":410,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":5,"forks":9,"open_issues":5,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/pulls/57"},"html":{"href":"https://github.com/sonata-project/SonataDashboardBundle/pull/57"},"issue":{"href":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/issues/57"},"comments":{"href":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/issues/57/comments"},"review_comments":{"href":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/pulls/57/comments"},"review_comment":{"href":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/pulls/57/commits"},"statuses":{"href":"https://api.github.com/repos/sonata-project/SonataDashboardBundle/statuses/bcfc16ab465e47a0602c4d5f109d03b8d8836f48"}}}}
{"actor":{"display_login":"core23"}}