original_string: protected function init()
      {
          if ($this->container) {
              return;
          }
  
          $this->container = new Container();
          $this->connectionPool = new Pool();
          $this->cacheComponent = new CacheComponent();
  
          $this->container->instance(Pool::class, $this->connectionPool);
          $this->container->instance(CacheComponentInterface::class, $this->cacheComponent);
          Ioc::setContainer($this->container);
  
          static::$singleton = $this;
      }
code: protected function init()
      {
          if ($this->container) {
              return;
          }
  
          $this->container = new Container();
          $this->connectionPool = new Pool();
          $this->cacheComponent = new CacheComponent();
  
          $this->container->instance(Pool::class, $this->connectionPool);
          $this->container->instance(CacheComponentInterface::class, $this->cacheComponent);
          Ioc::setContainer($this->container);
  
          static::$singleton = $this;
      }
code_tokens: protected function init ( ) { if ( $ this -> container ) { return ; } $ this -> container = new Container ( ) ; $ this -> connectionPool = new Pool ( ) ; $ this -> cacheComponent = new CacheComponent ( ) ; $ this -> container -> instance ( Pool :: class , $ this -> connectionPool ) ; $ this -> container -> instance ( CacheComponentInterface :: class , $ this -> cacheComponent ) ; Ioc :: setContainer ( $ this -> container ) ; static :: $ singleton = $ this ; }
docstring: Initializes the Mongolid manager.
docstring_tokens: Initializes the Mongolid manager .