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

@bobdenotter bobdenotter commented Feb 16, 2020

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

Neat! 👍

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

None yet

2 participants