Skip to content

Conversation

Trismegiste
Copy link
Contributor

Hello

This PR fixes a problem with the implementation with Object Adapter pattern.

An adapter should not create the adaptee, it is rather injected in the adapter (in the constructor)

http://sourcemaking.com/design_patterns/adapter/php

This is mandatory because in your app, both Adaptee and Adapter could live in the same time

Hope this helps

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling aefe6aa on Trismegiste:master into 6894150 on whizark:master.

whizark added a commit that referenced this pull request Sep 16, 2013
fixing a DIP violation in the implementation Object Adapter pattern
@whizark whizark merged commit 83d8e05 into whizark:master Sep 16, 2013
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.

3 participants