code: public function setServiceContainer($serviceContainer, $deprecationNotice = true)
      {
          if ($deprecationNotice) {
              // @codingStandardsIgnoreStart
              @trigger_error(
                  '"' .__METHOD__ . '" is deprecated and will get removed.',
                  E_USER_DEPRECATED
              );
              // @codingStandardsIgnoreEnd
          }
          $this->serviceContainer = $serviceContainer;
  
          return $this;
      }
docs: Set the service container.
  
  NOTE: this is deprecated - to prevent triggering deprecation notices, you may pass a closure here which
  will then return the service container.
  
  @param \Closure|IMetaModelsServiceContainer $serviceContainer The service container.
  
  @return MetaModel
  
  @deprecated Inject services via constructor or setter.