{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/14096","labels_url":"https://api.github.com/repos/symfony/symfony/issues/14096/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/14096/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/14096/events","html_url":"https://github.com/symfony/symfony/issues/14096","id":64943162,"number":14096,"title":"[DX] src/AppBundle versus app","user":{"login":"parhamdoustdar","id":352539,"avatar_url":"https://avatars.githubusercontent.com/u/352539?v=3","gravatar_id":"","url":"https://api.github.com/users/parhamdoustdar","html_url":"https://github.com/parhamdoustdar","followers_url":"https://api.github.com/users/parhamdoustdar/followers","following_url":"https://api.github.com/users/parhamdoustdar/following{/other_user}","gists_url":"https://api.github.com/users/parhamdoustdar/gists{/gist_id}","starred_url":"https://api.github.com/users/parhamdoustdar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parhamdoustdar/subscriptions","organizations_url":"https://api.github.com/users/parhamdoustdar/orgs","repos_url":"https://api.github.com/users/parhamdoustdar/repos","events_url":"https://api.github.com/users/parhamdoustdar/events{/privacy}","received_events_url":"https://api.github.com/users/parhamdoustdar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-28T13:32:47Z","updated_at":"2015-03-28T17:36:43Z","closed_at":null,"body":"Both in the documentation and in different bundles, there seems to be confusion on what goes where, which ends up confusing developers, especially new developers (like me!) :smile:\r\n\r\n1. [Creating Pages in Symfony](http://symfony.com/doc/current/book/page_creation.html) does things the old way: it talks about generating bundles, whereas in Symfony 2.6 this is being discouraged.\r\n2. Various command line tools (such as `app/console generate:controller`) still do things the old way, generating views under the `AppBundle` bundle.\r\n3. Doctrine bundles are not being consistent either. The [DoctrineFixturesBundle](http://symfony.com/doc/current/bundles/DoctrineFixturesBundle/index.html) creates fixtures inside the `AppBundle`, whereas [DoctrineMigrationsBundle](http://symfony.com/doc/master/bundles/DoctrineMigrationsBundle/index.html) puts them in the `app/` directory.\r\n\r\nI believe this stems from the fact that there is no list of what does or does not go into `app/` and `src/AppBundle/`. Also, some existing commands are clearly violating the latest best practices and paradigm shifts that have been introduced in Symfony 2.6, such as the controller generator."},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/87271992","html_url":"https://github.com/symfony/symfony/issues/14096#issuecomment-87271992","issue_url":"https://api.github.com/repos/symfony/symfony/issues/14096","id":87271992,"user":{"login":"lavoiesl","id":1216046,"avatar_url":"https://avatars.githubusercontent.com/u/1216046?v=3","gravatar_id":"","url":"https://api.github.com/users/lavoiesl","html_url":"https://github.com/lavoiesl","followers_url":"https://api.github.com/users/lavoiesl/followers","following_url":"https://api.github.com/users/lavoiesl/following{/other_user}","gists_url":"https://api.github.com/users/lavoiesl/gists{/gist_id}","starred_url":"https://api.github.com/users/lavoiesl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lavoiesl/subscriptions","organizations_url":"https://api.github.com/users/lavoiesl/orgs","repos_url":"https://api.github.com/users/lavoiesl/repos","events_url":"https://api.github.com/users/lavoiesl/events{/privacy}","received_events_url":"https://api.github.com/users/lavoiesl/received_events","type":"User","site_admin":false},"created_at":"2015-03-28T17:36:42Z","updated_at":"2015-03-28T17:36:42Z","body":"@javiereguiluz What I would be looking to take position on the matter is a broader recommendation on what goes in a bundle and what goes in `app/`.\r\n\r\nExamples (always in the idea of a single-bundle application):\r\n- Services\r\n- Controllers\r\n- Views\r\n- Configuration\r\n- POPOs\r\n- Entities\r\n- DataFixtures\r\n- Migrations\r\n- bower configuration (SpBowerBundle puts it in bundles)\r\n- FormTypes\r\n"}}