-
Notifications
You must be signed in to change notification settings - Fork 62
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
Kernel autodiscover #89
Comments
Makes sense, using |
Sorry to be late on this. |
|
Yes, indeed but it could be placed wherever so that's no way to reach the |
We need to rely on either the current working directory or the directory with Behat config files in order to autodiscover the kernel file. The purpose of the autodiscovering itself is to guess the path, while still leaving the possibility for someone to define their own path. |
I know this but using |
@DonCallisto yeah, I don't think there's any other way except for looking for the kernel location in common files like Could you provide which scenario is currently not working for you that could be solved here? (I mean in which way you would run |
I think that The scenario is where you run Behat outside the root of the project without specifiying my own path with the configuration. I know that sounds like that's not a problem, and indeed it isn't, I was just arguing about the fact that |
Is there any news on this feature? :) |
@wapcrazut I've tried an implementation but I failed (and TBH, I didn't spent too much time on this). As you can specify Kernel path in configuration, for the moment, I've switched to that solution. |
I tried to give it a shot, but it looks like it wouldn't work with Behat's autoloading: if (is_file($autoload = getcwd() . '/vendor/autoload.php')) {
require $autoload;
} That's the snippet from |
Umh, I guess we cannot do anything better... |
I think that
SymfonyExtension/src/ServiceContainer/SymfonyExtension.php
Line 210 in 2f038b2
should be, somehow, parametric as with this check we're forced to run behat command from the same folder of
app
.WDYT?
The text was updated successfully, but these errors were encountered: