code: public function getFramework(): ContaoFramework
      {
          @trigger_error(
              'Using FrameworkAwareTrait::getFramework() has been deprecated and will no longer work in Contao 5.0.',
              E_USER_DEPRECATED
          );
  
          if (null === $this->framework) {
              throw new \LogicException('The framework service has not been set.');
          }
  
          return $this->framework;
      }
docs: @throws \LogicException
  
  @deprecated Deprecated since Contao 4.3, to be removed in Contao 5.0