-
Notifications
You must be signed in to change notification settings - Fork 277
Specify session name to get #321
Comments
For reference: FriendsOfBehat/SymfonyExtension#30 |
Same issue with |
Managed to narrow it down to prepareDefaultMinkSession (namely |
Please provide a reproducing case |
as mentioned above, this happens with every session driver... |
well, if you create your own service getting the session, this service might get instantiated too early compared to the time where we configure the default session for this scneario. |
sure, but the problem is that neither |
Well, please provide a reproducing case (and the code you gave above is not a reproducing case, as I have no idea where this XML is meant to go and where the |
@kochen You can create a small project on github to expose that. If you don't have enough time I probably can do that... but later... |
@stof @loic425 took a while but here it is: https://github.com/kochen/behat-mink-session |
I've added |
@kochen @stof |
@stof In SessionListener, prepareDefaultMinkSession is not called. I have this problem only when I remove symfony/symfony dependency. |
Yes, I mentioned that here: #321 (comment) |
I found it! @kochen you just have to add symfony/proxy-manager-bridge to handle lazy option. |
@stof You can close this issue. |
@kochen This is not a common case. This is due to the way Sylius did with its "mink.default_session" service.
But this package is already on Sylius. |
When using in combination with
Behat/MinkExtension
and setting theSymfony cache
:you get:
setting other sessions like
goutte
(and its corresponding driver) results in the same issue.The text was updated successfully, but these errors were encountered: