I have been following tutorials, and all instructions show it\'s done the exact same way, but it doesn\'t seem to work in Symfony 4. Is there something I\'m overlooking or i
In my case i'm using symfony 4.3, I just injected the class to the methods as an argument and i'm done.
public function list(ProductManager $productManager) { $products = $productManager->prepareProducts(); return $products; }