contao / manager-bundle

[READ-ONLY] Contao Manager Bundle
GNU Lesser General Public License v3.0
17 stars 10 forks source link

[4.4-beta1] kernel.project_dir parameter points to the manager bundle directory #28

Closed ausi closed 7 years ago

ausi commented 7 years ago

$container->getParameter('kernel.project_dir') returns /var/www/project/vendor/contao/manager-bundle because Kernel::getProjectDir() searches for the nearest composer.json file. As this parameter is used for TL_ROOT, this makes Contao 4.4-beta1 unusable in the managed edition.

I think we have to add a getProjectDir() method to the ContaoKernel.

aschempp commented 7 years ago

Checking with Symfony: https://github.com/symfony/symfony/pull/22315#pullrequestreview-36763781

leofeyer commented 7 years ago

I have created a PR: https://github.com/symfony/symfony/pull/22727

leofeyer commented 7 years ago

See #29.