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

feat: add whenExtensionDisabled to Conditional extender #3847

Merged
merged 2 commits into from
Jul 27, 2023

Conversation

imorland
Copy link
Member

Follow up to #3759

Adds whenExtensionDisabled condition to the Conditional extender. Enables developers to provide extend items when a given extension is not installed/enabled.

Usage example:

return [
    (new Extend\Conditional)
        ->whenExtensionDisabled('flarum-tags', [
                ...
        ]),
]

@imorland imorland added this to the 2.0 milestone Jun 28, 2023
@imorland imorland requested a review from a team as a code owner June 28, 2023 12:46
@SychO9 SychO9 merged commit 76004ed into 2.x Jul 27, 2023
@SychO9 SychO9 deleted the im/conditional-extender branch July 27, 2023 10:30
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.

3 participants