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

Add files autoloader for bin/command.php #524

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

BrianHenryIE
Copy link
Member

There is no autoload key in Composer.

This adds the files autoloader, as I think is the convention for files that contain WP_CLI::add_command() for a package.

    "autoload": {
        "files": [
            "bin/command.php"
        ]
    },

@BrianHenryIE BrianHenryIE requested a review from a team as a code owner July 3, 2024 01:22
@swissspidy
Copy link
Member

It only really does something when adding tests, otherwise the wp-cli config file handles the class loading I think... But can't hurt to add.

@swissspidy swissspidy added this to the 2.11.0 milestone Jul 8, 2024
@swissspidy swissspidy merged commit 5fd52cd into wp-cli:main Jul 8, 2024
2 checks passed
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.

2 participants