Open
Description
Hey Jeffrey!
I am trying to do method injection in a CommandHandler class like so:
public function handle($command, \UserRepository $userRepository)
Still, I'm getting the following error:
Declaration of Site\Registration\RegisterUserCommandHandler::handle() must be compatible with Laracasts\Commander\CommandHandler::handle($command)
Is it even possible to do method injection here?
Metadata
Metadata
Assignees
Labels
No labels
Activity