return $file; } } // File not found. return false; } /** * If file exists then loads it. * * @param string $file File to load * @param boolean $get_only_path If true - only return path for file to be loaded * @return bool True if file exists, otherwise - false */ private function _includeFile($file, $get_only_path) { if (file_exists($file)) { if ($get_only_path == false) { include_once $file; } return true; } return false; } } // Register base directory for namespace prefix Framework\ .. Loader::addNamespacePath('Framework\\', __DIR__); $instance = Loader::getInstance(); // Register autoloader. // Add Loader instance to the ObjectPool::_loaded_instances ObjectPool::add($instance);