Closed dmitryuk closed 1 year ago
Sonata media Configuration has with default value https://github.com/sonata-project/SonataMediaBundle/blob/4.x/src/DependencyInjection/Configuration.php#L195
->scalarNode('directory')->defaultValue('%kernel.project_dir%/web/uploads/media')->end()
But starting from Symfony 4.4 web folder moved to public. So the bundle not working as expected
web
public
Use first exiting folder: web or public
What do you think?
It's a nice idea ; we should have got this one in the previous major version... We could add a comment, because changing now is technically a BC break... WDYT @jordisala1991 ?
Subject
Sonata media Configuration has with default value https://github.com/sonata-project/SonataMediaBundle/blob/4.x/src/DependencyInjection/Configuration.php#L195
But starting from Symfony 4.4
web
folder moved topublic
. So the bundle not working as expectedPossible solution
Use first exiting folder:
web
orpublic
What do you think?