public function setProxyAutoloader(AutoloaderInterface $autoloader): void
    {
        if ($this->proxyAutoloader instanceof AutoloaderInterface) {
            spl_autoload_unregister($this->proxyAutoloader);
        }

        $this->proxyAutoloader = $autoloader;

        spl_autoload_register($this->proxyAutoloader);
    }
public function setProxyAutoloader(AutoloaderInterface $autoloader): void
    {
        if ($this->proxyAutoloader instanceof AutoloaderInterface) {
            spl_autoload_unregister($this->proxyAutoloader);
        }

        $this->proxyAutoloader = $autoloader;

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

@param AutoloaderInterface $autoloader
@throws \RuntimeException
Sets the { @link \ ProxyManager \ Autoloader \ AutoloaderInterface } that should be used by ProxyManager to load the generated classes .