code: public function getServiceContainer()
      {
          // @codingStandardsIgnoreStart
          @trigger_error(
              '"' .__METHOD__ . '" is deprecated and will get removed.',
              E_USER_DEPRECATED
          );
          // @codingStandardsIgnoreEnd
          return is_callable($this->serviceContainer) ? call_user_func($this->serviceContainer) : $this->serviceContainer;
      }
docs: {@inheritdoc}
  
  @deprecated Inject services via constructor or setter.