Václav Černý

Results 5 comments of Václav Černý

Reproduce: use composer autoloading. Issue: autoloading is dependent on vendor/composer files (e.g. ClassLoader class or autoload_classmap.php) but these cannot be used since Herd injects isolated composer.

Composer generates a class map to project/site `vendor/composer` directory, but if I dump path to this after request I am getting `phar:///Applications/Herd.app/Contents/Resources/valet/dump.phar/vendor/composer/autoload_classmap.php` and this class map is completely different.

To be more clear, I run `(herd) composer dump-autoload` which generates correct `vendor/composer/autoload_classmap.php`, but afterwards on the site request the `phar:///Applications/Herd.app/Contents/Resources/valet/dump.phar/vendor/composer/autoload_classmap.php` is loaded which is completely different class map from...

I noticed that the request is being called through `Applications/Herd.app/Contents/Resources/valet/server.php` and only after that my `index.php` is processed, so is it possible that the `autoload.php` is required somewhere inside `server.php`...

I was able at least to workaround this issue with disabling dumps via configuring `dumps: false` in `Library/Application Support/Herd/config`. However, how can I disable it persistently, because after a reboot...