{"action":"closed","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/11051","repository_url":"https://api.github.com/repos/symfony/symfony","labels_url":"https://api.github.com/repos/symfony/symfony/issues/11051/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/11051/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/11051/events","html_url":"https://github.com/symfony/symfony/issues/11051","id":34905653,"number":11051,"title":"[RFC] Introduce new template namespaces for bundles","user":{"login":"javiereguiluz","id":73419,"avatar_url":"https://avatars.githubusercontent.com/u/73419?v=3","gravatar_id":"","url":"https://api.github.com/users/javiereguiluz","html_url":"https://github.com/javiereguiluz","followers_url":"https://api.github.com/users/javiereguiluz/followers","following_url":"https://api.github.com/users/javiereguiluz/following{/other_user}","gists_url":"https://api.github.com/users/javiereguiluz/gists{/gist_id}","starred_url":"https://api.github.com/users/javiereguiluz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javiereguiluz/subscriptions","organizations_url":"https://api.github.com/users/javiereguiluz/orgs","repos_url":"https://api.github.com/users/javiereguiluz/repos","events_url":"https://api.github.com/users/javiereguiluz/events{/privacy}","received_events_url":"https://api.github.com/users/javiereguiluz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/symfony/symfony/labels/DX","name":"DX","color":"5319e7"},{"url":"https://api.github.com/repos/symfony/symfony/labels/FrameworkBundle","name":"FrameworkBundle","color":"DDDDDD"},{"url":"https://api.github.com/repos/symfony/symfony/labels/RFC","name":"RFC","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":131,"created_at":"2014-06-03T21:21:24Z","updated_at":"2016-02-09T17:05:34Z","closed_at":"2016-02-09T17:05:33Z","body":"*(this issue is part of the [\"DX\" (\"Developer eXperience\") initiative](http://symfony.com/blog/making-the-symfony-experience-exceptional) introduced by Symfony project)*\r\n\r\nOn the symfony-docs repository there is a [very long discussion](https://github.com/symfony/symfony-docs/issues/3849) about the new template naming syntax.\r\n\r\nIn short, some people think that the old syntax has inconsistencies in cases like the following:\r\n\r\n  * Resource: `@AcmeBlogBundle/Resources/views/Default/common/template4.html.twig`\r\n  * Template: `AcmeBlogBundle : Default : common / template4.html.twig`\r\n  * Also valid: `AcmeBlogBundle : Default / common : template4.html.twig`\r\n\r\nUsing the new namespaced Twig syntax, the template name would always be:\r\n\r\n`@AcmeBlog/Default/common/template4.html.twig`\r\n\r\nRemoving the `Resources/views/` part is very common and easy to understand. But removing the `Bundle` suffix is really strange and inconsistent with the rest of Symfony.\r\n\r\nThis problem is introduced in [lines 136-138 of TwigBundle/DependencyInjection/TwigExtension.php file](https://github.com/symfony/symfony/blob/a12db9bbd7813ec710d584ca56b8da2c66e1c4df/src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php#L136-138).\r\n\r\n#### Summarized Proposals\r\n\r\nDeprecate the current behavior (0) and choose one of the following to implement and recommend:\r\n\r\nProp  | Template | Notes\r\n------- | ------------- | --------\r\n0  | `AcmeBlogBundle:Default:index.html.twig` | current\r\n1  | `@AcmeBlogBundle/Default/index.html.twig` | Assumed `Resources/views`\r\n2  | `@AcmeBlogBundle:Default/index.html.twig` | Assumed `Resources/views`\r\n3  | `AcmeBlogBundle:Default/index.html.twig` | Assumed `Resources/views`\r\n4 | `@AcmeBlogBundle:views/Default/index.html.twig`  | Assumed `Resources`, could also be used consistent with routing imports\r\n5 | `AcmeBlogBundle:views/Default/index.html.twig`  | Assumed `Resources`\r\n6 | `view@AcmeDemoBundle/Default/index.html.twig`  | we might also have `public@`, `config@` that could be used elsewhere"}}