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

Switch to Composer autoloader #985

Merged
merged 8 commits into from
Sep 6, 2022
Merged

Switch to Composer autoloader #985

merged 8 commits into from
Sep 6, 2022

Conversation

GaryJones
Copy link
Contributor

@GaryJones GaryJones commented Jul 16, 2022

Description

Switch to Composer autoloader

Built plugin (i.e. a Zip on GitHub, or what is pushed to WordPress.org, will need to ensure that composer install --no-dev -a is run, so that Authoritative class maps are created.

Motivation and Context

Fixes #961.

How Has This Been Tested?

  • Load the front and back ends with and without this patch.
  • Tests pass.

@GaryJones GaryJones requested a review from a team as a code owner July 16, 2022 02:33
@GaryJones GaryJones self-assigned this Jul 16, 2022
@GaryJones
Copy link
Contributor Author

As noted in the description - we may want to add further enhancements/changes before we close the original issue.

@acicovic acicovic added this to the 3.6.0 milestone Jul 18, 2022
@acicovic
Copy link
Collaborator

@GaryJones, thank you very much for the contribution. Would you have any suspicion about why E2E tests fail the way they do?

@acicovic acicovic marked this pull request as draft July 20, 2022 07:18
@GaryJones
Copy link
Contributor Author

All failures seem to stop at No node found for selector: #user_login - but not sure why that is.

@acicovic acicovic self-assigned this Sep 5, 2022
@acicovic
Copy link
Collaborator

acicovic commented Sep 5, 2022

I went ahead in order to make tests pass and apply some autoload file optimizations for E2E tests and the deployment workflow. I think that as things stand, composer install --no-dev -a is not needed.

@acicovic acicovic marked this pull request as ready for review September 5, 2022 13:42
Copy link
Contributor

@chriszarate chriszarate left a comment

Choose a reason for hiding this comment

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

👍

@acicovic acicovic merged commit a4c2ef3 into develop Sep 6, 2022
@acicovic acicovic deleted the add/autoloader branch September 6, 2022 19:05
@acicovic acicovic mentioned this pull request Nov 7, 2022
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use an autoloader for the plugin's files
3 participants