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

Allow getting extensions by partial name. #1077

Merged
merged 2 commits into from
Feb 17, 2020

Conversation

bobdenotter
Copy link
Member

I can foresee a lot of people getting stuck when getting (the config of) extensions, if it requires the full name. For example, before you had to do this:

/** @var ExtensionRegistry $extensionRegistry */
$extensionRegistry->getExtension('Bolt\\BoltForms\\Extension');

Now you can do this:

/** @var ExtensionRegistry $extensionRegistry */
$extensionRegistry->getExtension('Bolt\\BoltForms');

// or even
$extensionRegistry->getExtension('BoltForms');

@bobdenotter bobdenotter added this to the Bolt 4.0.0 stable milestone Feb 16, 2020
Copy link
Member

@I-Valchev I-Valchev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat! 👍

@I-Valchev I-Valchev merged commit 3f634b3 into master Feb 17, 2020
@I-Valchev I-Valchev deleted the fix/get-extensions-by-partial-name branch February 17, 2020 08:08
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