Closed alexislefebvre closed 2 years ago
It may be missing from the doc but it is there:
"files": {
"type": "array",
"description": "This is an array of files that are always required on every request."
}
See the composer-schema.json
file. You can also see the result in the dumped autoloading files (vendor/composer/autoload_files.php
for this one)
It does require the autoloader to be dumped for it to be taken into account though.
I still have the issue after running composer dump-autoload
on my local environment. And the CI is red with the same error.
Maybe the issue is that the path is not correct when reading composer.json
from a subdirectory.
It occurred in https://github.com/theofidry/AliceDataFixtures/runs/7156925224?check_suite_focus=true
But you fixed it in the commit after, now the error is about Monolog: https://github.com/theofidry/AliceDataFixtures/runs/7157015613?check_suite_focus=true
The doc of composer doesn't mention the support of
files
: https://getcomposer.org/doc/04-schema.md#autoload-devIt works by using a class.