-
Notifications
You must be signed in to change notification settings - Fork 73
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
join votes for participation check #3373
Conversation
Signed-off-by: dartcafe <[email protected]>
Signed-off-by: dartcafe <[email protected]>
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.4 to 1.15.6. - [Release notes](https://github.com/follow-redirects/follow-redirects/releases) - [Commits](follow-redirects/follow-redirects@v1.15.4...v1.15.6) --- updated-dependencies: - dependency-name: follow-redirects dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]>
…w-redirects-1.15.6
Signed-off-by: dartcafe <[email protected]>
Signed-off-by: dartcafe <[email protected]>
Signed-off-by: dartcafe <[email protected]>
Signed-off-by: dartcafe <[email protected]>
Register Services
Signed-off-by: dartcafe <[email protected]>
Signed-off-by: dartcafe <[email protected]>
…nto enh/join-votes Signed-off-by: dartcafe <[email protected]>
Signed-off-by: dartcafe <[email protected]>
Signed-off-by: dartcafe <[email protected]>
…nto enh/join-votes Signed-off-by: dartcafe <[email protected]>
Signed-off-by: dartcafe <[email protected]>
$context->registerService(UserMapper::class, function (ContainerInterface $c): UserMapper { | ||
return new UserMapper( | ||
$c->get(IDBConnection::class), | ||
$c->get(ISession::class), | ||
$c->get(IUserSession::class), | ||
$c->get(IUserManager::class), | ||
$c->get(LoggerInterface::class), | ||
); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is all this needed? This is the default DI behavior to my knowledge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was annoyed by the unit tests, where every dependency needed to be instantiated.
If there is a DI possibility for the tests, this is indeed unnecessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Usually you use Mocks for the tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah. Tests. See #3147 😉
Count current user's votes via join in poll
regarding #3362