Closed mollux closed 1 year ago
great, thank you!
Is there any chance that this will be merged any time soon? It's complicating things on our side.
hi, sure
I have problem when vendor dir is example /var/www/some-name/vendor/some-hash-id and line $vendorRootDir = dirname($reflection->getFileName(), 3); return /var/www/some-name/vendor and concat with ELFINDER_CSS_DIR gives to /var/www/some-name/vendor/vendor/studio-42/elfinder/css and error in install. Change level in dirname to 4 return correct dir but this is not solution.
When the
vendor
folder is not in the%kernel.project_dir%
, theelfinder:install
command fails:This is typically the case when the
vendor
folder is outside of the webroot dir, which is from security point of view a best practice.This PR ensures the
vendor
folder location is determined based on the composer classloader. This both works for application with thevendor
inside and outside the webroot dir.