Skip to content

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