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

        return $path;
    }