public function getModulePath($file, $asFileInfo = false)
    {
        $path = $this->moduleDirectory . ltrim($file, '/');
        if ($asFileInfo) {
            $path = new \SplFileInfo($path);
        }

        return $path;
    }
public function getModulePath($file, $asFileInfo = false)
    {
        $path = $this->moduleDirectory . ltrim($file, '/');
        if ($asFileInfo) {
            $path = new \SplFileInfo($path);
        }

        return $path;
    }
public function getModulePath ( $ file , $ asFileInfo = false ) { $ path = $ this -> moduleDirectory . ltrim ( $ file , '/' ) ; if ( $ asFileInfo ) { $ path = new \ SplFileInfo ( $ path ) ; } return $ path ; }
Returns the file path for the current module

@param string $file
@param bool $asFileInfo
@return string|\SplFileInfo
Returns the file path for the current module