For all versions of Symfony, the path to the resources is %kernel.root_dir%/Resources/ . Since the new 4.0 framework places the Kernel.php directory in src/ , this is:
# local resources directory src/Resources/
New Resource Override Conventions (since Symfony 3.4)
Twig Templates : Just follow the convention:
templates/bundles/AcmeDemoBundle/path/to/template.html.twig
If you upgrade to Symfony 3.4 and 4.0 and want to use the previous template conventions, configure your own Twig paths:
# app/config/config.yml (3.3) twig: paths:
Translations: Similar to templates/ you have the translations/ directory in the root of the project (default):
translations/bundles/AcmeDemoBundle/messages.en.yml
Note: /{AcmeDemoBundle}/ part is optional (in this case), because translations are not associated with packages, but with domains. This means that you can redefine translations if they are in the correct domain.
source share