Dependency Injection Controller

Hello,

I have trouble with dependecy injection in config ‘definitions’.

I want to inject two controllers with same interface but different implementation for this controller.

RegisterController


  public function __construct($id,

                                Module $module,

                                Service $registrationUserService,

                                array $config = []) {

        parent::__construct($id, $module, $config);

        $this->registrationUserService = $registrationUserService;

    }



LoginController


  public function __construct($id,

                                Module $module,

                                Service $LoginUserService,

                                array $config = []) {

        parent::__construct($id, $module, $config);

     

    }



How to deal with this situation , how to manage which implementation will inject.