This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Bundle
Nicolas Grekas 32e0a25200 feature #32845 [HttpKernel][FrameworkBundle] Add alternative convention for bundle directories (yceruto)
This PR was squashed before being merged into the 4.4 branch (closes #32845).

Discussion
----------

[HttpKernel][FrameworkBundle] Add alternative convention for bundle directories

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | https://github.com/symfony/symfony/issues/32453
| License       | MIT
| Doc PR        | TODO

We already know that bundles must be compatible with many Symfony's versions, so it is very likely that current bundles won't be able to use this feature soon, unless they create symbolic links to support both structures.

The point is that this is already happening, so in the future when our bundles stop to support <=4.3 then you'll be sure to change the current directory structure.

We have recently added the `getPublicDir()` method in https://github.com/symfony/symfony/pull/31975, here I'm removing it in favor of hardcoding a new convention.

I've added some functional tests in which I've changed everything to this structure:
```
-- ModernBundle
   |-- config/
   |-- public/
   |-- src/
       |-- ModernBundle.php
   |-- templates/
   |-- translations/
```
WDYT?

Commits
-------

6996e1cbe2 [HttpKernel][FrameworkBundle] Add alternative convention for bundle directories
2019-08-13 15:29:11 +02:00
..
DebugBundle Merge branch '4.2' into 4.3 2019-07-19 10:33:28 +02:00
FrameworkBundle feature #32845 [HttpKernel][FrameworkBundle] Add alternative convention for bundle directories (yceruto) 2019-08-13 15:29:11 +02:00
SecurityBundle Merge branch '4.3' into 4.4 2019-08-13 08:48:26 +02:00
TwigBundle feature #32845 [HttpKernel][FrameworkBundle] Add alternative convention for bundle directories (yceruto) 2019-08-13 15:29:11 +02:00
WebProfilerBundle Merge branch '4.3' into 4.4 2019-08-08 14:07:40 +02:00
WebServerBundle Merge branch '4.3' into 4.4 2019-08-08 17:13:31 +02:00
FullStack.php [FrameworkBundle] changed some default configs from canBeEnabled to canBeDisabled 2017-01-07 14:17:04 -08:00