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