Р
Size: a a a
Р
VS
D
VS
VS
VS
AD
ПГ
D
ПГ
AD
ПГ
AD
ПГ
AD
interface HandlerInterface {Как будет выглядеть DI конфиг?
public function handle(array $input): void
}
class OneController {
private HandlerInterface $handler;
//construct
public function __invoke() {
$this->handler->handle(['message' => 'hello world']);
}
}
class TwoController {
private HandlerInterface $handler;
//construct
public function __invoke() {
$this->handler->handle(['email' => 'admin@my.google.cloud']);
}
}