Skip to content

Add files autoloader for bin/command.php - #524

Merged
swissspidy merged 1 commit into
wp-cli:mainfrom
BrianHenryIE:add-autoloader
Jul 8, 2024
Merged

Add files autoloader for bin/command.php#524
swissspidy merged 1 commit into
wp-cli:mainfrom
BrianHenryIE:add-autoloader

Conversation

@BrianHenryIE

Copy link
Copy Markdown
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
Copy Markdown
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

2 participants