Get's the License File object

@return \RocketTheme\Toolbox\File\FileInterface
550684
public static function getLicenseFile()

    {
        if (!isset(self::$file)) {
            $path = Grav::instance()['locator']->findResource('user-data://') . '/licenses.yaml';
            if (!file_exists($path)) {
                touch($path);
            }
            self::$file = CompiledYamlFile::instance($path);
        }

        return self::$file;
    }
919987
public function getIcon()
    {
        $filename = $this->getFilename();
        $ext = pathinfo($filename, PATHINFO_EXTENSION);
        return File::get_icon_for_extension($ext);
    }
100946
public function getEditObject()
    {
        $soxId = $this->getEditObjectId();
        if ($this->_oEditObject === null && isset($soxId) && $soxId != "-1") {
            $this->_oEditObject = oxNew(\OxidEsales\Eshop\Application\Model\OrderFileList::class);
            $this->_oEditObject->loadOrderFiles($soxId);
        }

        return $this->_oEditObject;
    }
46838
public function getTypeObject()
    {
        $app = Application::getFacadeApplication();
        $fh = $app->make('helper/file');
        $ext = $fh->getExtension($this->fvFilename);
        $ftl = FileTypeList::getType($ext);

        return $ftl;
    }
290580
public function getFileId(): \Psr\Http\Message\UriInterface
    {
        if (!$this->fileId) {
            return new Uri();
        }

        return $this->fileId;
    }
561518
public function getFileLoader(): LoaderInterface
    {
        if (!isset($this->fileLoader)) {
            $this->fileLoader = new DelegateLoader();
        }

        return $this->fileLoader;
    }
367116
public function getRootDirModule()
    {
        $r = new \ReflectionObject($this);
        $injectionDir = str_replace('\\', '/', dirname($r->getFileName()));
        return $injectionDir . '/..';
    }
1047802
public function getPrivateFile() : ?\SplFileInfo
    {
        $path = self::PRIVATE_ABSOLUTE_PATH . $this->destination . $this->privateFileName;

        if (!$this->privateFileName || !file_exists($path))
        {
            return NULL;
        }

        return new \SplFileInfo($path);
    }
230780
public function getPublicFile() : ?string
    {
        $publicDestination = self::PUBLIC_ABSOLUTE_PATH . $this->destination;
        $privateFile = $this->getPrivateFile();

        if (!$this->privateFileName || !file_exists($privateFile->getPathname()))
        {
            return NULL;
        }

        $name = $privateFile->getFilename();

        if (!file_exists($publicDestination . $name))
        {
            FileSystem::copy($privateFile->getPathname(), $publicDestination . $name);
        }

        return self::PUBLIC_RELATIVE_PATH . $this->destination . $name;
    }
598576
public function getFileManager()
    {
        if ($this->file_manager_instance === null) {
            $this->file_manager_instance = new FileManager($this);
        }

        return $this->file_manager_instance;
    }
327253
private function sync_site_license() {
            $api = $this->get_api_user_scope();

            $result = $api->get( "/licenses/{$this->_license->id}.json?license_key=" . urlencode( $this->_license->secret_key ), true );

            if ( ! $this->is_api_result_entity( $result ) ) {
                return $result;
            }

            $license = $this->_update_site_license( new FS_Plugin_License( $result ) );
            $this->_store_licenses();

            return $license;
        }
928953
public function file() {
        $this->check_role = 'file';
        if (!$this->value) {
            $result = false;
        } else if ($this->value instanceof File) {
            $result = is_file($this->value->path_tmp);
        } else {
            $result = is_file($this->value);
        }
        $this->checkResult($result);
        return $this;
    }
32307
protected function getFile()
    {
        $path = $this->directory.'/'.self::MANIFEST_FILENAME;
        $file = $this->pathHelper->getPublicPath($path, true);
        return $file;
    }
1105792
public static function GetVersionObject() {
		if(!is_object(self::$version)) {
			self::$version = new Version(dirname(__FILE__) .'/../VERSION');
		}
		return(self::$version);
	}
433700
public function licenseAgreementAction()
    {
        $this->title("License Agreement");

        // Get license
        $license = file_get_contents(dirname(dirname(__DIR__)) . '/COPYING');
        $this->set("license", $license);

        return $this->render("license_agreement.phtml");
    }
594360
public function getFile()
    {
        if ($this->file && get_class($this->file) != $this->file->ClassName) {
            // If the class is Image and the ClassName says it should be a CloudImage, just reload it
            $this->file = DataObject::get($this->file->ClassName)->byID($this->file->ID);
        }

        return $this->file;
    }
636550
public function getFile()
    {
        if (!$this->hasGetParameter('uri')) {
            throw new \common_exception_Error('invalid media identifier');
        }
        $uri = urldecode($this->getGetParameter('uri'));

        $mediaSource = new MediaSource(array());
        $fileInfo = $mediaSource->getFileInfo($uri);

        $fileManagement = $this->getServiceLocator()->get(FileManagement::SERVICE_ID);
        $stream = $fileManagement->getFileStream($fileInfo['link']);
        if ($fileInfo['mime'] === 'application/qti+xml') {
            $this->response = $this->getPsrResponse()->withBody($stream);
        } elseif ($this->hasGetParameter('xml')) {
            $this->returnJson(htmlentities((string)$stream));
        } else {
            $this->setContentHeader($fileInfo['mime']);
            $this->response = $this->getPsrResponse()->withBody($stream);
        }
    }