/** * @param array $import * * @return $this|void */ function merge($import) { # set normalize paths array_map(function ($key, $path) use(&$import) { $this->set($key, Util::normalize_path($path)); }, array_keys($import), array_values($import)); return $this; }
/** * Glob a set of file names from a normalized path. * * @param $base_path * * @return array */ private function files_from_path($base_path) { $base_path = Util::normalize_path($base_path); $files = glob($base_path . "*.php"); return $files; }