{"action":"opened","number":238,"pull_request":{"url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/pulls/238","id":62094694,"html_url":"https://github.com/FriendsOfSymfony/FOSJsRoutingBundle/pull/238","diff_url":"https://github.com/FriendsOfSymfony/FOSJsRoutingBundle/pull/238.diff","patch_url":"https://github.com/FriendsOfSymfony/FOSJsRoutingBundle/pull/238.patch","issue_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/issues/238","number":238,"state":"open","locked":false,"title":"Expose routing options to javascript routes","user":{"login":"JanChristiansen","id":206582,"avatar_url":"https://avatars.githubusercontent.com/u/206582?v=3","gravatar_id":"","url":"https://api.github.com/users/JanChristiansen","html_url":"https://github.com/JanChristiansen","followers_url":"https://api.github.com/users/JanChristiansen/followers","following_url":"https://api.github.com/users/JanChristiansen/following{/other_user}","gists_url":"https://api.github.com/users/JanChristiansen/gists{/gist_id}","starred_url":"https://api.github.com/users/JanChristiansen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanChristiansen/subscriptions","organizations_url":"https://api.github.com/users/JanChristiansen/orgs","repos_url":"https://api.github.com/users/JanChristiansen/repos","events_url":"https://api.github.com/users/JanChristiansen/events{/privacy}","received_events_url":"https://api.github.com/users/JanChristiansen/received_events","type":"User","site_admin":false},"body":"We needed some options available in our angular application together with the routes configuration. Because we only want one place where routes and their options are defined, we need a way to expose options from the symfony routing definition.\r\n\r\nI added a paramater (fos_js_routing.expose_options) to enable this feature. If enabled any exposed_options inside the options of a route are exposed to the javascript routes as a \"options\" property.\r\n\r\nAlso I changed the URL from where closure is loaded to githubusercontent.com to get a stable build.\r\n\r\nAll tests passed: https://travis-ci.org/MyHammer/FOSJsRoutingBundle/builds/114553462\r\n","created_at":"2016-03-08T16:18:37Z","updated_at":"2016-03-08T16:18:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/pulls/238/commits","review_comments_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/pulls/238/comments","review_comment_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/issues/238/comments","statuses_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/statuses/7a1f56ced8a38dd7ac69b957e7e73e6487a05fae","head":{"label":"MyHammer:expose-options","ref":"expose-options","sha":"7a1f56ced8a38dd7ac69b957e7e73e6487a05fae","user":{"login":"MyHammer","id":1080792,"avatar_url":"https://avatars.githubusercontent.com/u/1080792?v=3","gravatar_id":"","url":"https://api.github.com/users/MyHammer","html_url":"https://github.com/MyHammer","followers_url":"https://api.github.com/users/MyHammer/followers","following_url":"https://api.github.com/users/MyHammer/following{/other_user}","gists_url":"https://api.github.com/users/MyHammer/gists{/gist_id}","starred_url":"https://api.github.com/users/MyHammer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MyHammer/subscriptions","organizations_url":"https://api.github.com/users/MyHammer/orgs","repos_url":"https://api.github.com/users/MyHammer/repos","events_url":"https://api.github.com/users/MyHammer/events{/privacy}","received_events_url":"https://api.github.com/users/MyHammer/received_events","type":"Organization","site_admin":false},"repo":{"id":53339027,"name":"FOSJsRoutingBundle","full_name":"MyHammer/FOSJsRoutingBundle","owner":{"login":"MyHammer","id":1080792,"avatar_url":"https://avatars.githubusercontent.com/u/1080792?v=3","gravatar_id":"","url":"https://api.github.com/users/MyHammer","html_url":"https://github.com/MyHammer","followers_url":"https://api.github.com/users/MyHammer/followers","following_url":"https://api.github.com/users/MyHammer/following{/other_user}","gists_url":"https://api.github.com/users/MyHammer/gists{/gist_id}","starred_url":"https://api.github.com/users/MyHammer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MyHammer/subscriptions","organizations_url":"https://api.github.com/users/MyHammer/orgs","repos_url":"https://api.github.com/users/MyHammer/repos","events_url":"https://api.github.com/users/MyHammer/events{/privacy}","received_events_url":"https://api.github.com/users/MyHammer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MyHammer/FOSJsRoutingBundle","description":"A pretty nice way to expose your Symfony2 routing to client applications.","fork":true,"url":"https://api.github.com/repos/MyHammer/FOSJsRoutingBundle","forks_url":"https://api.github.com/repos/MyHammer/FOSJsRoutingBundle/forks","keys_url":"https://api.github.com/repos/MyHammer/FOSJsRoutingBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MyHammer/FOSJsRoutingBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MyHammer/FOSJsRoutingBundle/teams","hooks_url":"https://api.github.com/repos/MyHammer/FOSJsRoutingBundle/hooks","issue_events_url":"https://api.github.com/repos/MyHammer/FOSJsRoutingBundle/issues/events{/number}","events_url":"https://api.github.com/repos/MyHammer/FOSJsRoutingBundle/events","assignees_url":"https://api.github.com/repos/MyHammer/FOSJsRoutingBundle/assignees{/user}","branches_url":"https://api.github.com/repos/MyHammer/FOSJsRoutingBundle/branches{/branch}","tags_url":"https://api.github.com/repos/MyHammer/FOSJsRoutingBundle/tags","blobs_url":"https://api.github.com/repos/MyHammer/FOSJsRoutingBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MyHammer/FOSJsRoutingBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MyHammer/FOSJsRoutingBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/MyHammer/FOSJsRoutingBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MyHammer/FOSJsRoutingBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/MyHammer/FOSJsRoutingBundle/languages","stargazers_url":"https://api.github.com/repos/MyHammer/FOSJsRoutingBundle/stargazers","contributors_url":"https://api.github.com/repos/MyHammer/FOSJsRoutingBundle/contributors","subscribers_url":"https://api.github.com/repos/MyHammer/FOSJsRoutingBundle/subscribers","subscription_url":"https://api.github.com/repos/MyHammer/FOSJsRoutingBundle/subscription","commits_url":"https://api.github.com/repos/MyHammer/FOSJsRoutingBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/MyHammer/FOSJsRoutingBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/MyHammer/FOSJsRoutingBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/MyHammer/FOSJsRoutingBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/MyHammer/FOSJsRoutingBundle/contents/{+path}","compare_url":"https://api.github.com/repos/MyHammer/FOSJsRoutingBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MyHammer/FOSJsRoutingBundle/merges","archive_url":"https://api.github.com/repos/MyHammer/FOSJsRoutingBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MyHammer/FOSJsRoutingBundle/downloads","issues_url":"https://api.github.com/repos/MyHammer/FOSJsRoutingBundle/issues{/number}","pulls_url":"https://api.github.com/repos/MyHammer/FOSJsRoutingBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/MyHammer/FOSJsRoutingBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/MyHammer/FOSJsRoutingBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MyHammer/FOSJsRoutingBundle/labels{/name}","releases_url":"https://api.github.com/repos/MyHammer/FOSJsRoutingBundle/releases{/id}","deployments_url":"https://api.github.com/repos/MyHammer/FOSJsRoutingBundle/deployments","created_at":"2016-03-07T16:08:59Z","updated_at":"2016-03-07T16:08:59Z","pushed_at":"2016-03-08T16:08:41Z","git_url":"git://github.com/MyHammer/FOSJsRoutingBundle.git","ssh_url":"git@github.com:MyHammer/FOSJsRoutingBundle.git","clone_url":"https://github.com/MyHammer/FOSJsRoutingBundle.git","svn_url":"https://github.com/MyHammer/FOSJsRoutingBundle","homepage":"","size":515,"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":"FriendsOfSymfony:master","ref":"master","sha":"25d0117093a845dee96d1dc439656cbf3714ea09","user":{"login":"FriendsOfSymfony","id":529709,"avatar_url":"https://avatars.githubusercontent.com/u/529709?v=3","gravatar_id":"","url":"https://api.github.com/users/FriendsOfSymfony","html_url":"https://github.com/FriendsOfSymfony","followers_url":"https://api.github.com/users/FriendsOfSymfony/followers","following_url":"https://api.github.com/users/FriendsOfSymfony/following{/other_user}","gists_url":"https://api.github.com/users/FriendsOfSymfony/gists{/gist_id}","starred_url":"https://api.github.com/users/FriendsOfSymfony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FriendsOfSymfony/subscriptions","organizations_url":"https://api.github.com/users/FriendsOfSymfony/orgs","repos_url":"https://api.github.com/users/FriendsOfSymfony/repos","events_url":"https://api.github.com/users/FriendsOfSymfony/events{/privacy}","received_events_url":"https://api.github.com/users/FriendsOfSymfony/received_events","type":"Organization","site_admin":false},"repo":{"id":1740684,"name":"FOSJsRoutingBundle","full_name":"FriendsOfSymfony/FOSJsRoutingBundle","owner":{"login":"FriendsOfSymfony","id":529709,"avatar_url":"https://avatars.githubusercontent.com/u/529709?v=3","gravatar_id":"","url":"https://api.github.com/users/FriendsOfSymfony","html_url":"https://github.com/FriendsOfSymfony","followers_url":"https://api.github.com/users/FriendsOfSymfony/followers","following_url":"https://api.github.com/users/FriendsOfSymfony/following{/other_user}","gists_url":"https://api.github.com/users/FriendsOfSymfony/gists{/gist_id}","starred_url":"https://api.github.com/users/FriendsOfSymfony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FriendsOfSymfony/subscriptions","organizations_url":"https://api.github.com/users/FriendsOfSymfony/orgs","repos_url":"https://api.github.com/users/FriendsOfSymfony/repos","events_url":"https://api.github.com/users/FriendsOfSymfony/events{/privacy}","received_events_url":"https://api.github.com/users/FriendsOfSymfony/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FriendsOfSymfony/FOSJsRoutingBundle","description":"A pretty nice way to expose your Symfony2 routing to client applications.","fork":false,"url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle","forks_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/forks","keys_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/teams","hooks_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/hooks","issue_events_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/issues/events{/number}","events_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/events","assignees_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/assignees{/user}","branches_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/branches{/branch}","tags_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/tags","blobs_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/languages","stargazers_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/stargazers","contributors_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/contributors","subscribers_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/subscribers","subscription_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/subscription","commits_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/contents/{+path}","compare_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/merges","archive_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/downloads","issues_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/issues{/number}","pulls_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/labels{/name}","releases_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/releases{/id}","deployments_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/deployments","created_at":"2011-05-12T22:01:51Z","updated_at":"2016-03-08T08:51:19Z","pushed_at":"2016-03-02T18:38:43Z","git_url":"git://github.com/FriendsOfSymfony/FOSJsRoutingBundle.git","ssh_url":"git@github.com:FriendsOfSymfony/FOSJsRoutingBundle.git","clone_url":"https://github.com/FriendsOfSymfony/FOSJsRoutingBundle.git","svn_url":"https://github.com/FriendsOfSymfony/FOSJsRoutingBundle","homepage":"","size":606,"stargazers_count":717,"watchers_count":717,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":142,"mirror_url":null,"open_issues_count":14,"forks":142,"open_issues":14,"watchers":717,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/pulls/238"},"html":{"href":"https://github.com/FriendsOfSymfony/FOSJsRoutingBundle/pull/238"},"issue":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/issues/238"},"comments":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/issues/238/comments"},"review_comments":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/pulls/238/comments"},"review_comment":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/pulls/238/commits"},"statuses":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/statuses/7a1f56ced8a38dd7ac69b957e7e73e6487a05fae"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":5,"additions":139,"deletions":11,"changed_files":11}}