diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2018-10-31 13:20:15 +0300 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2018-10-31 13:20:15 +0300 |
commit | 759ad720b82f0d8e09ae819a69fce7af2597db25 (patch) | |
tree | 7708f1aaf06ae79dae71d11dd4b9d552b45c7493 /appinfo | |
parent | aadc13ea0b802961f86dc43432deffa9323bcc7d (diff) |
using my-small-php-tools
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/app.php | 2 | ||||
-rw-r--r-- | appinfo/autoload.php | 39 |
2 files changed, 41 insertions, 0 deletions
diff --git a/appinfo/app.php b/appinfo/app.php index 20c5b72..d5c699d 100644 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -34,6 +34,8 @@ namespace OCA\FullTextSearch\AppInfo; use OCP\AppFramework\QueryException; +require_once __DIR__ . '/autoload.php'; + try { $app = new Application(); $app->registerServices(); diff --git a/appinfo/autoload.php b/appinfo/autoload.php new file mode 100644 index 0000000..094b758 --- /dev/null +++ b/appinfo/autoload.php @@ -0,0 +1,39 @@ +<?php +declare(strict_types=1); + + +/** + * FullTextSearch - Full text search framework for Nextcloud + * + * This file is licensed under the Affero General Public License version 3 or + * later. See the COPYING file. + * + * @author Maxence Lange <maxence@artificial-owl.com> + * @copyright 2018 + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + + +namespace OCA\FullTextSearch\AppInfo; + + +$composerDir = __DIR__ . '/../vendor/'; + +if (is_dir($composerDir) && file_exists($composerDir . 'autoload.php')) { + require_once $composerDir . 'autoload.php'; +} + |