Skip to content

Conversation

amazium
Copy link

@amazium amazium commented Oct 21, 2013

Added AdapterAwareInterface to AbstractDbMapper to allow initializers to inject the db adapter

@localheinz
Copy link
Contributor

@amazium

I heard initializers are evil, what do you think?

@adamlundrigan
Copy link
Contributor

I think this change is fine, though I too avoid initializers and instead create a factory for the mapper and inject the db adapter there. /cc @Danielss89

@Danielss89 Danielss89 added this to the 0.1.3 milestone Jan 15, 2015
@Danielss89
Copy link
Member

initializer or not, an interface is good ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants