Answer the question
In order to leave comments, you need to log in
Can a DI container inject classes into the constructor that are not declared in the container?
Let's say
class Expample {
function __construct(Responser $responser) {}
}
$di = new DI();
$di->set('expample', 'Example');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question