Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Fix Composer 2 compatibility #1

Description

@brandonkelly

When installing this plugin with Composer 1, the following deprecation notice is output:

Deprecation Notice: Class milkshakestudio\brandfetch\assetbundles\Brandfetch\BrandfetchAsset located in ./vendor/milkshakestudio/craft-brandfetch/src/assetbundles/brandfetch/BrandfetchAsset.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0.

Composer 2 was released on October 24, and is now the default version that will be installed, so it’s critical that this gets resolved ASAP, or people will start getting Class not found errors.

To fix, run the following command:

> git mv src/assetbundles/brandfetch src/assetbundles/Brandfetch

Then commit your change and tag a new release.

(Note that you must use the git mv command, as Git tends to not notice case-sensitive file renames otherwise.)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions