예제 #1
0
파일: Kernel.php 프로젝트: koolkode/k2
 /**
  * Bind initial object instances to the DI container.
  */
 protected function bindInitialInstances(ContainerInterface $container)
 {
     foreach ($this->komponents as $komponent) {
         $container->bindInstance(get_class($komponent), $komponent);
     }
 }
예제 #2
0
파일: TestSystem.php 프로젝트: koolkode/k2
 public function performInitialization(ContainerInterface $container)
 {
     $container->bindInstance(TestSystem::class, $this);
     $this->performInitUsingTrait($container);
 }