{"action":"created","issue":{"url":"https://api.github.com/repos/contao/core-bundle/issues/428","repository_url":"https://api.github.com/repos/contao/core-bundle","labels_url":"https://api.github.com/repos/contao/core-bundle/issues/428/labels{/name}","comments_url":"https://api.github.com/repos/contao/core-bundle/issues/428/comments","events_url":"https://api.github.com/repos/contao/core-bundle/issues/428/events","html_url":"https://github.com/contao/core-bundle/issues/428","id":121060721,"number":428,"title":"Move default configuration to core bundle","user":{"login":"aschempp","id":1073273,"avatar_url":"https://avatars.githubusercontent.com/u/1073273?v=3","gravatar_id":"","url":"https://api.github.com/users/aschempp","html_url":"https://github.com/aschempp","followers_url":"https://api.github.com/users/aschempp/followers","following_url":"https://api.github.com/users/aschempp/following{/other_user}","gists_url":"https://api.github.com/users/aschempp/gists{/gist_id}","starred_url":"https://api.github.com/users/aschempp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aschempp/subscriptions","organizations_url":"https://api.github.com/users/aschempp/orgs","repos_url":"https://api.github.com/users/aschempp/repos","events_url":"https://api.github.com/users/aschempp/events{/privacy}","received_events_url":"https://api.github.com/users/aschempp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/contao/core-bundle/labels/up%20for%20discussion","name":"up for discussion","color":"2a982a"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-12-08T17:44:48Z","updated_at":"2016-03-03T13:06:12Z","closed_at":"2016-03-03T12:52:49Z","body":"I was thinking a lot about the app configuration recently, mainly because I am working on a Contao 4 application that is getting more and more complicated.\r\n\r\nI propose to move the default configurations to `core-bundle`, which will also make maintenance much easier. The changes would mean:\r\n\r\n`app/config/config.yml` would look like this:\r\n\r\n````\r\nimports:\r\n    - { resource: parameters.yml }\r\n    - { resource: security.yml }\r\n    - { resource: ../../vendor/contao/core-bundle/Resources/config/default/framework.yml }\r\n    - { resource: ../../vendor/contao/core-bundle/Resources/config/default/doctrine_dbal.yml }\r\n    - { resource: ../../vendor/contao/core-bundle/Resources/config/default/twig.yml }\r\n# … and more if necessary\r\n```\r\n\r\nIn addition to the individual files there could also be a `all.yml` that then loads all the others. It would make it much easier for app developers to include only the default sections needed and override the custom stuff.\r\n\r\nI can make a PR for Contao 4.2 if @contao/developers agree :-)"},"comment":{"url":"https://api.github.com/repos/contao/core-bundle/issues/comments/191753377","html_url":"https://github.com/contao/core-bundle/issues/428#issuecomment-191753377","issue_url":"https://api.github.com/repos/contao/core-bundle/issues/428","id":191753377,"user":{"login":"aschempp","id":1073273,"avatar_url":"https://avatars.githubusercontent.com/u/1073273?v=3","gravatar_id":"","url":"https://api.github.com/users/aschempp","html_url":"https://github.com/aschempp","followers_url":"https://api.github.com/users/aschempp/followers","following_url":"https://api.github.com/users/aschempp/following{/other_user}","gists_url":"https://api.github.com/users/aschempp/gists{/gist_id}","starred_url":"https://api.github.com/users/aschempp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aschempp/subscriptions","organizations_url":"https://api.github.com/users/aschempp/orgs","repos_url":"https://api.github.com/users/aschempp/repos","events_url":"https://api.github.com/users/aschempp/events{/privacy}","received_events_url":"https://api.github.com/users/aschempp/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T13:06:12Z","updated_at":"2016-03-03T13:06:12Z","body":"I agree. Unfortunately, compiler passes won't really work as we discussed, but that's a topic for another call ;-)"}}