You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a composer command plugin that uses the AWS php SDK to grab files from S3. I'm using composer 1.2.4.
I am seeing an autoload issue where AWS classes autoload as expected but functions declared in a separate file do not. The AWS SDK composer.json appears correct.
But the functions defined in vendor/aws/aws-sdk-php/src/functions.php aren't being included.
I can verify that none of the files listed in vendor/composer/autoload_files.php are being included.
Is there an autoload step I'm missing to get these loaded and accessible? My current workaround is to manually include them, but that doesn't feel right.
I am guessing you run into this error during script or plugin execution. This is at runtime, which means the final autoloader has not been generated yet. The autoloader that is generated on the fly at runtime does not load/contain "files" directives.
I initially posted this question here: http://stackoverflow.com/questions/41250405/composer-plugin-autoload-depedency.
I'm working on a composer command plugin that uses the AWS php SDK to grab files from S3. I'm using composer 1.2.4.
I am seeing an autoload issue where AWS classes autoload as expected but functions declared in a separate file do not. The AWS SDK composer.json appears correct.
My
composer.json
:Excerpt of aws
composer.json
:When I run my command I get the following output:
I can see the AWS classes showing up in the stack trace, so I know they're being loaded.
But the functions defined in vendor/aws/aws-sdk-php/src/functions.php aren't being included.
I can verify that none of the files listed in vendor/composer/autoload_files.php are being included.
Is there an autoload step I'm missing to get these loaded and accessible? My current workaround is to manually include them, but that doesn't feel right.
The text was updated successfully, but these errors were encountered: