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

[Behat] EZP-30884: Added support for class name as service id #2750

Merged
merged 1 commit into from
Sep 16, 2019

Conversation

mnocon
Copy link
Member

@mnocon mnocon commented Aug 27, 2019

Question Answer
JIRA issue EZP-30884
Bug/Improvement yes
New feature no
Target version 7.5
BC breaks no
Tests pass yes
Doc needed no

This regex, as part of EzSystemsBehatExtension, is responsible for splitting a string like:
injectService $argumentParser @EzSystems\BehatBundle\Helper\ArgumentParser
into three parts:

  • injectService
  • $argumentParser
  • @EzSystems\BehatBundle\Helper\ArgumentParser

Unfortunely currently it works as:

  • injectService
  • $argumentParser
  • @EzSystems

which makes it impossible to inject services using class name.

Usage: https://github.com/ezsystems/ezplatform-admin-ui/pull/1068/files#diff-1cc2fa436666ba5b8522af19a0efe93fR29

Merging upstream: this file has been removed in master, needs to be ported to BehatBundle for 3.0: https://github.com/ezsystems/BehatBundle/blob/master/src/lib/Core/Behat/AnnotationArgumentResolver.php#L73

@mnocon mnocon changed the title [WIP] [Behat] Added support for class name as service id [Behat] EZP-30884: Added support for class name as service id Aug 29, 2019
@mnocon mnocon requested review from alongosz and ViniTou September 16, 2019 07:30
@ViniTou
Copy link
Contributor

ViniTou commented Sep 16, 2019

image

@mnocon
Copy link
Member Author

mnocon commented Sep 16, 2019

@lserwatka this one can be merged

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

Successfully merging this pull request may close these issues.

4 participants