{"action":"created","issue":{"url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/issues/349","labels_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/issues/349/labels{/name}","comments_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/issues/349/comments","events_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/issues/349/events","html_url":"https://github.com/ezsystems/PlatformUIBundle/pull/349","id":108624973,"number":349,"title":"EZP-24654: Inject the PlatformUI application config in one object","user":{"login":"dpobel","id":305563,"avatar_url":"https://avatars.githubusercontent.com/u/305563?v=3","gravatar_id":"","url":"https://api.github.com/users/dpobel","html_url":"https://github.com/dpobel","followers_url":"https://api.github.com/users/dpobel/followers","following_url":"https://api.github.com/users/dpobel/following{/other_user}","gists_url":"https://api.github.com/users/dpobel/gists{/gist_id}","starred_url":"https://api.github.com/users/dpobel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpobel/subscriptions","organizations_url":"https://api.github.com/users/dpobel/orgs","repos_url":"https://api.github.com/users/dpobel/repos","events_url":"https://api.github.com/users/dpobel/events{/privacy}","received_events_url":"https://api.github.com/users/dpobel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-28T09:55:01Z","updated_at":"2015-09-29T13:24:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/pulls/349","html_url":"https://github.com/ezsystems/PlatformUIBundle/pull/349","diff_url":"https://github.com/ezsystems/PlatformUIBundle/pull/349.diff","patch_url":"https://github.com/ezsystems/PlatformUIBundle/pull/349.patch"},"body":"JIRA: https://jira.ez.no/browse/EZP-24654\r\n\r\n# Description\r\n\r\nThis patch changes the way the PlatformUIApp receives its configuration. With it, it now receives a single `config` hash build with the *Application Config Providers* introduced in https://github.com/ezsystems/PlatformUIBundle/pull/286 / [EZP-24129](https://jira.ez.no/browse/EZP-24129).\r\n\r\nThis has 2 main benefits:\r\n\r\n* the logic is moved from the shell.html.twig template to a testable and tested code\r\n* the configuration is completely extensible, ie an external bundle can add its own application provider(s) to inject any configuration and can add its own JavaScript components and/or plugins to consume it (ping @sunpietro).\r\n\r\nSo now, the view services receive by default the app configuration in the `config` attribute. In view services dedicated to side views (bars, udw, confirm box, ...), the `config` attribute was also used to set some execution parameters (like the title of the confirm box for instance). To avoid mixing everything, the side views have now a `parameters` attribute dedicated to that.\r\n\r\n## Tasks\r\n\r\n* [x] Inject the `parameters` Twig variables and dispatch its content\r\n* [x] Change the *route config* system to avoid dealing with route names\r\n\r\n# Tests\r\n\r\nunit tests + manual tests"},"comment":{"url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/issues/comments/144057812","html_url":"https://github.com/ezsystems/PlatformUIBundle/pull/349#issuecomment-144057812","issue_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/issues/349","id":144057812,"user":{"login":"yannickroger","id":4035241,"avatar_url":"https://avatars.githubusercontent.com/u/4035241?v=3","gravatar_id":"","url":"https://api.github.com/users/yannickroger","html_url":"https://github.com/yannickroger","followers_url":"https://api.github.com/users/yannickroger/followers","following_url":"https://api.github.com/users/yannickroger/following{/other_user}","gists_url":"https://api.github.com/users/yannickroger/gists{/gist_id}","starred_url":"https://api.github.com/users/yannickroger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yannickroger/subscriptions","organizations_url":"https://api.github.com/users/yannickroger/orgs","repos_url":"https://api.github.com/users/yannickroger/repos","events_url":"https://api.github.com/users/yannickroger/events{/privacy}","received_events_url":"https://api.github.com/users/yannickroger/received_events","type":"User","site_admin":false},"created_at":"2015-09-29T13:24:26Z","updated_at":"2015-09-29T13:24:26Z","body":"+1"}}