services.yml
services:
_defaults:
autowire: true
autoconfigure: true
public: true
Controller:
/**
* @Security("has_role('ROLE_USER')")
* @Route("/", name="homepage")
*/
public function indexAction(ContactService $contactService)
{
Error
:indexAction()" requires that you provide a value for the "$contactService" argument.
What i should do to this example work (auto inject service to controller method)