Webiny\Component\ClassLoader\ClassLoader::unregisterMap PHP 메소드

unregisterMap() 공개 메소드

Removes the given map prefix from class loader.
public unregisterMap ( string $mapPrefix ) : boolean
$mapPrefix string Map prefix that should be removed.
리턴 boolean Returns true if the map prefix was found and removed, otherwise false.
    public function unregisterMap($mapPrefix)
    {
        foreach ($this->loaders as $l) {
            $loader = "\\Webiny\\Component\\ClassLoader\\Loaders\\" . $l;
            $result = $loader::getInstance()->unregisterMap($mapPrefix);
            if ($result) {
                return true;
            }
        }
        return false;
    }