Slide 17
Slide 17 text
// contextual bind͔Ͳ͏͔
if (isset($this->app->contextual[$class])) {
//
$this->resolveContextualBindings($class, $compiledClass);
}
// ίϯύΠϧͨ͠ΫϥεͱೖΕସ͑Δ
$this->app->bind($class, function ($app) use ($bind, $compiledClass) {
$instance = $app->make($compiledClass);
$instance->bindings = $bind->getBindings();
return $instance;
});