Пример #1
0
 /**
  * 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
 public function performInitialization(ContainerInterface $container)
 {
     $container->bindInstance(TestSystem::class, $this);
     $this->performInitUsingTrait($container);
 }