Skip to content

Conversation

@henrywright
Copy link

@henrywright henrywright commented Oct 8, 2019

This PR will allow the plugin to be used after installing with Composer

Fixes #43

Copy link

@hm-linter hm-linter bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Linting failed (35 errors, 4 warnings).

39 notices occurred in your codebase, but none on files/lines included in this PR.

return;
}

require_once dirname( __FILE__ ) . '/vendor/autoload.php';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file isn't committed so it can't be trusted to exist. This also won't work for projects that install plugins / dependencies like this one a the project root level as you could end up with multiple copies of the AWS SDK rather than shared one.

The following approach would support both:

Suggested change
require_once dirname( __FILE__ ) . '/vendor/autoload.php';
if ( is_readable( dirname( __FILE__ ) . '/vendor/autoload.php' ) ) {
require_once dirname( __FILE__ ) . '/vendor/autoload.php';
}

@tomjn
Copy link
Contributor

tomjn commented Aug 2, 2025

Closing this in favor of #50

@tomjn tomjn closed this Aug 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Class 'Aws\Ses\SesClient' not found

3 participants