Slide 40
Slide 40 text
$container->set('foo', function () use ($container) {
$object = new Foo();
$object->setLogger($container->get('logger'));
return $object;
});
class Foo
{
public function setLogger(LoggerInterface $logger)
public function bar()
}
ੜ
༻
˞͜ΕઃఆϑΝΠϧͳͷͰػೳ࣮Ͱ͋Γ·ͤΜ