{"action":"created","comment":{"url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls/comments/35514083","id":35514083,"diff_hunk":"@@ -0,0 +1,109 @@\n+Block parameter\n+===============\n+\n+Context\n+-------\n+\n+To be properly displayed on the website, some block will require environment parameters.\n+Those parameters could be of multiple type, for instance :\n+\n+ - url parameters\n+ - server parameters\n+ - header parameters\n+ - ...\n+\n+An easy way to give those parameters to the block would have been to give all the request\n+parameters when we call a block.\n+\n+This easy solution is not optimal a main reason, when working with `ESI`_, you will cache each block\n+for each different url.\n+\n+``/block/1`` will be in one cache entry.\n+``/block/1?foo=bar`` will be in another cache entry.\n+\n+Open Orchestra solution\n+-----------------------\n+\n+At Open Orchestra, we prefer to give you the opportunity to pass only the parameters you want\n+to request a block, this way, we would limit the cache entries for a single block.\n+\n+Backoffice work\n+~~~~~~~~~~~~~~~\n+\n+In the Backoffice, we provide a way to store the parameter linked to the block in the block reference\n+in the areas.\n+\n+You need to declare a service with the tag ``open_orchestra_backoffice.block_parameter.strategy``\n+\n+.. code-block:: yaml\n+\n+    tags:\n+        - { name: open_orchestra_backoffice.block_parameter.strategy }\n+\n+The class should also implement the interface ``OpenOrchestra\\Backoffice\\BlockParameter\\BlockParameterInterface``\n+\n+Frontoffice work\n+~~~~~~~~~~~~~~~~\n+\n+In the Frontoffice, the request is created while you don't have any idea of the block type. You will have to create","path":"en/developer_guide/block_parameter.rst","position":48,"original_position":48,"commit_id":"2d56bcfda2741b608a35467c64d1e0c8d2ff06d7","original_commit_id":"2d56bcfda2741b608a35467c64d1e0c8d2ff06d7","user":{"login":"itkg-ngilain","id":6725138,"avatar_url":"https://avatars.githubusercontent.com/u/6725138?v=3","gravatar_id":"","url":"https://api.github.com/users/itkg-ngilain","html_url":"https://github.com/itkg-ngilain","followers_url":"https://api.github.com/users/itkg-ngilain/followers","following_url":"https://api.github.com/users/itkg-ngilain/following{/other_user}","gists_url":"https://api.github.com/users/itkg-ngilain/gists{/gist_id}","starred_url":"https://api.github.com/users/itkg-ngilain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itkg-ngilain/subscriptions","organizations_url":"https://api.github.com/users/itkg-ngilain/orgs","repos_url":"https://api.github.com/users/itkg-ngilain/repos","events_url":"https://api.github.com/users/itkg-ngilain/events{/privacy}","received_events_url":"https://api.github.com/users/itkg-ngilain/received_events","type":"User","site_admin":false},"body":"This explanation is not clear too: which request are you talking about ? The main page request ? an esi block request ?","created_at":"2015-07-27T08:24:27Z","updated_at":"2015-07-27T08:24:27Z","html_url":"https://github.com/open-orchestra/open-orchestra-docs/pull/69#discussion_r35514083","pull_request_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls/69","_links":{"self":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls/comments/35514083"},"html":{"href":"https://github.com/open-orchestra/open-orchestra-docs/pull/69#discussion_r35514083"},"pull_request":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls/69"}}},"pull_request":{"url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls/69","id":40782260,"html_url":"https://github.com/open-orchestra/open-orchestra-docs/pull/69","diff_url":"https://github.com/open-orchestra/open-orchestra-docs/pull/69.diff","patch_url":"https://github.com/open-orchestra/open-orchestra-docs/pull/69.patch","issue_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/issues/69","number":69,"state":"open","locked":false,"title":"add block parameter documentation","user":{"login":"nicolasThal","id":2675545,"avatar_url":"https://avatars.githubusercontent.com/u/2675545?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolasThal","html_url":"https://github.com/nicolasThal","followers_url":"https://api.github.com/users/nicolasThal/followers","following_url":"https://api.github.com/users/nicolasThal/following{/other_user}","gists_url":"https://api.github.com/users/nicolasThal/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolasThal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolasThal/subscriptions","organizations_url":"https://api.github.com/users/nicolasThal/orgs","repos_url":"https://api.github.com/users/nicolasThal/repos","events_url":"https://api.github.com/users/nicolasThal/events{/privacy}","received_events_url":"https://api.github.com/users/nicolasThal/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-24T14:47:54Z","updated_at":"2015-07-27T08:24:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ee271366fdd7e4457d2ad7ade0148e46750fba72","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls/69/commits","review_comments_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls/69/comments","review_comment_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/issues/69/comments","statuses_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/statuses/2d56bcfda2741b608a35467c64d1e0c8d2ff06d7","head":{"label":"open-orchestra:block_parameter","ref":"block_parameter","sha":"2d56bcfda2741b608a35467c64d1e0c8d2ff06d7","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":33729445,"name":"open-orchestra-docs","full_name":"open-orchestra/open-orchestra-docs","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-docs","description":"The Open Orchestra project documentation","fork":false,"url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs","forks_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/forks","keys_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/teams","hooks_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/hooks","issue_events_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/issues/events{/number}","events_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/events","assignees_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/assignees{/user}","branches_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/branches{/branch}","tags_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/tags","blobs_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/languages","stargazers_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/stargazers","contributors_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/contributors","subscribers_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/subscribers","subscription_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/subscription","commits_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/contents/{+path}","compare_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/merges","archive_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/downloads","issues_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/issues{/number}","pulls_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/labels{/name}","releases_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/releases{/id}","created_at":"2015-04-10T13:19:49Z","updated_at":"2015-07-09T08:59:19Z","pushed_at":"2015-07-24T15:08:04Z","git_url":"git://github.com/open-orchestra/open-orchestra-docs.git","ssh_url":"git@github.com:open-orchestra/open-orchestra-docs.git","clone_url":"https://github.com/open-orchestra/open-orchestra-docs.git","svn_url":"https://github.com/open-orchestra/open-orchestra-docs","homepage":null,"size":2985,"stargazers_count":2,"watchers_count":2,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":2,"default_branch":"master"}},"base":{"label":"open-orchestra:master","ref":"master","sha":"fad0dcf6d5ddb8c72d3a3396ccf603532ceb04a8","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":33729445,"name":"open-orchestra-docs","full_name":"open-orchestra/open-orchestra-docs","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-docs","description":"The Open Orchestra project documentation","fork":false,"url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs","forks_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/forks","keys_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/teams","hooks_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/hooks","issue_events_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/issues/events{/number}","events_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/events","assignees_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/assignees{/user}","branches_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/branches{/branch}","tags_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/tags","blobs_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/languages","stargazers_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/stargazers","contributors_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/contributors","subscribers_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/subscribers","subscription_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/subscription","commits_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/contents/{+path}","compare_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/merges","archive_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/downloads","issues_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/issues{/number}","pulls_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/labels{/name}","releases_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/releases{/id}","created_at":"2015-04-10T13:19:49Z","updated_at":"2015-07-09T08:59:19Z","pushed_at":"2015-07-24T15:08:04Z","git_url":"git://github.com/open-orchestra/open-orchestra-docs.git","ssh_url":"git@github.com:open-orchestra/open-orchestra-docs.git","clone_url":"https://github.com/open-orchestra/open-orchestra-docs.git","svn_url":"https://github.com/open-orchestra/open-orchestra-docs","homepage":null,"size":2985,"stargazers_count":2,"watchers_count":2,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls/69"},"html":{"href":"https://github.com/open-orchestra/open-orchestra-docs/pull/69"},"issue":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/issues/69"},"comments":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/issues/69/comments"},"review_comments":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls/69/comments"},"review_comment":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls/69/commits"},"statuses":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/statuses/2d56bcfda2741b608a35467c64d1e0c8d2ff06d7"}}}}