public static function dump($dirs, $file, $blackList = null)
    {
        $maps = array();

        foreach ($dirs as $dir) {
            $maps = array_merge($maps, static::createMap($dir, null, null, $blackList));
        }

        file_put_contents($file, sprintf('<?php return %s;', var_export($maps, true)));
    }
public static function dump($dirs, $file, $blackList = null)
    {
        $maps = array();

        foreach ($dirs as $dir) {
            $maps = array_merge($maps, static::createMap($dir, null, null, $blackList));
        }

        file_put_contents($file, sprintf('<?php return %s;', var_export($maps, true)));
    }
public static function dump ( $ dirs , $ file , $ blackList = null ) { $ maps = array ( ) ; foreach ( $ dirs as $ dir ) { $ maps = array_merge ( $ maps , static :: createMap ( $ dir , null , null , $ blackList ) ) ; } file_put_contents ( $ file , sprintf ( '<?php return %s;' , var_export ( $ maps , true ) ) ) ; }
Generate a class map file.

@param \Traversable $dirs      Directories or a single path to search in.

@param string       $file      The name of the class map file.

@param string[]     $blackList Optional list of blacklist regex for files to exclude.

@return void
Generate a class map file .