vendredi 8 mai 2015

What's the difference between Composite and Dependency Injection

I see that Composite pattern and dependency injection means

public function __construct(ClassToUseInterface $class) {
$this->class = $class
}

So, what's the difference ?

Aucun commentaire:

Enregistrer un commentaire