protected function loadMapFromFile($location)
    {
        if (!file_exists($location)) {

            throw new Zend_Loader_Exception_InvalidArgumentException('Map file provided does not exist');
        }

        if (!$path = self::realPharPath($location)) {
            $path = realpath($location);
        }

        if (in_array($path, $this->mapsLoaded)) {
            // Already loaded this map
            return $this;
        }

        $map = include $path;

        return $map;
    }
protected function loadMapFromFile($location)
    {
        if (!file_exists($location)) {

            throw new Zend_Loader_Exception_InvalidArgumentException('Map file provided does not exist');
        }

        if (!$path = self::realPharPath($location)) {
            $path = realpath($location);
        }

        if (in_array($path, $this->mapsLoaded)) {
            // Already loaded this map
            return $this;
        }

        $map = include $path;

        return $map;
    }
protected function loadMapFromFile ( $ location ) { if ( ! file_exists ( $ location ) ) { throw new Zend_Loader_Exception_InvalidArgumentException ( 'Map file provided does not exist' ) ; } if ( ! $ path = self :: realPharPath ( $ location ) ) { $ path = realpath ( $ location ) ; } if ( in_array ( $ path , $ this -> mapsLoaded ) ) { // Already loaded this map return $ this ; } $ map = include $ path ; return $ map ; }
Load a map from a file

If the map has been previously loaded, returns the current instance;
otherwise, returns whatever was returned by calling include() on the
location.

@param  string $location
@return Zend_Loader_ClassMapAutoloader|mixed
@throws Zend_Loader_Exception_InvalidArgumentException for nonexistent locations
Load a map from a file