Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include the SDK in the project #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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.

@@ -14,6 +14,7 @@
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';
}

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
2 participants