Skip to content

Conversation

@michaelmeneses
Copy link
Contributor

New plugin types:

  • aiplacement
  • aiprovider
  • smsgateway

New plugin types:
- aiplacement
- aiprovider
- smsgateway
@mjrox
Copy link

mjrox commented Dec 2, 2025

From Moodle 5.1, all php files are in the /public directory. Should I create a new pull request to update the paths of the installers, or am I missing something in the way composer works?

@michaelmeneses
Copy link
Contributor Author

Hi @mjrox

Yes! From version 5.1 onwards, the destination folder that was /{plugintype} becomes /public/{plugintype}.

I submitted this PR up to version 5.0 to update it to include the available types there.

I have a project for Moodle with Composer:
https://github.com/michaelmeneses/moodle-composer

I haven't yet updated and processed the project to version 5.1 or higher.

What are you planning to do to fix this?

@mjrox
Copy link

mjrox commented Dec 3, 2025

Hi @michaelmeneses

I'm afraid I don't have a plan to fix this - I'm addressing it by overriding the installer paths e.g.

    "extra": {
        "installer-paths": {
            "public/auth/{$name}/": ["type:moodle-auth"]
        }
    }

... which is not the most elegant solution.

I suggest that any solution would also need to accommodate pre 5.1 sites - would you agree?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants