protected function _path($path, $forceDir)
{
if ($forceDir) {
return is_dir($path) ? $path : null;
}
if (file_exists($file = $path . '.php')) {
return $file;
}
if (file_exists($file = $path . '.hh')) {
return $file;
}
if (is_dir($path)) {
return $path;
}
}