/** * Bind initial object instances to the DI container. */ protected function bindInitialInstances(ContainerInterface $container) { foreach ($this->komponents as $komponent) { $container->bindInstance(get_class($komponent), $komponent); } }
public function performInitialization(ContainerInterface $container) { $container->bindInstance(TestSystem::class, $this); $this->performInitUsingTrait($container); }