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

Unsetting extensions from Yaml does not seem to work #10511

Closed
micschk opened this issue Sep 23, 2022 · 2 comments · Fixed by #10516
Closed

Unsetting extensions from Yaml does not seem to work #10511

micschk opened this issue Sep 23, 2022 · 2 comments · Fixed by #10516

Comments

@micschk
Copy link
Contributor

micschk commented Sep 23, 2022

The below Yaml config produces an error: "Uncaught InvalidArgumentException: SilverStripe\Assets\File references nonexistent in 'extensions'".

SilverStripe\Assets\File:
  extensions:
    comments: SilverStripe\Comments\Extensions\CommentsExtension

This would allow you to disable that extension with only this code

SilverStripe\Assets\File:
  extensions:
    comments: null

The above code example was originally posted by @tractorcow in silverstripe/silverstripe-cms#2146 (comment)

PRs

@GuySartorelli
Copy link
Member

Fixed with #10516

@micschk
Copy link
Contributor Author

micschk commented Sep 27, 2022

Great, thx!

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

Successfully merging a pull request may close this issue.

2 participants