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

Add autowiring and autoconfiguration for methods #62

Open
pamil opened this Issue Feb 4, 2019 · 0 comments

Comments

Projects
1 participant
@pamil
Copy link
Member

pamil commented Feb 4, 2019

It would be great to support autowiring and autoconfiguration for methods defining steps and transformations:

/**
 * @Given there is a product :productName
 */
public function thereIsProduct(string $productName, ProductRepository $productRepository): void
{
    $this->productRepository->add(new Product($productName));
}

The logic would be similar to the one used by Symfony for their controllers: https://symfony.com/doc/current/controller.html#fetching-services

@pamil pamil added this to To do in Roadmap Feb 10, 2019

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