code: public function setProxyAutoloader(AutoloaderInterface $autoloader): void
      {
          if ($this->proxyAutoloader instanceof AutoloaderInterface) {
              spl_autoload_unregister($this->proxyAutoloader);
          }
  
          $this->proxyAutoloader = $autoloader;
  
          spl_autoload_register($this->proxyAutoloader);
      }
docs: Sets the {@link \ProxyManager\Autoloader\AutoloaderInterface} that should be
  used by ProxyManager to load the generated classes.
  
  @param AutoloaderInterface $autoloader
  @throws \RuntimeException