mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Merge pull request #44011 from nextcloud/sorbaugh/public-bundle
feat: Adding PublicSectorBundle
This commit is contained in:
commit
b800de2ebd
5 changed files with 56 additions and 8 deletions
|
|
@ -885,6 +885,7 @@ return array(
|
|||
'OC\\App\\AppStore\\Bundles\\EnterpriseBundle' => $baseDir . '/lib/private/App/AppStore/Bundles/EnterpriseBundle.php',
|
||||
'OC\\App\\AppStore\\Bundles\\GroupwareBundle' => $baseDir . '/lib/private/App/AppStore/Bundles/GroupwareBundle.php',
|
||||
'OC\\App\\AppStore\\Bundles\\HubBundle' => $baseDir . '/lib/private/App/AppStore/Bundles/HubBundle.php',
|
||||
'OC\\App\\AppStore\\Bundles\\PublicSectorBundle' => $baseDir . '/lib/private/App/AppStore/Bundles/PublicSectorBundle.php',
|
||||
'OC\\App\\AppStore\\Bundles\\SocialSharingBundle' => $baseDir . '/lib/private/App/AppStore/Bundles/SocialSharingBundle.php',
|
||||
'OC\\App\\AppStore\\Fetcher\\AppFetcher' => $baseDir . '/lib/private/App/AppStore/Fetcher/AppFetcher.php',
|
||||
'OC\\App\\AppStore\\Fetcher\\CategoryFetcher' => $baseDir . '/lib/private/App/AppStore/Fetcher/CategoryFetcher.php',
|
||||
|
|
|
|||
|
|
@ -17,10 +17,6 @@ class ComposerStaticInit749170dad3f5e7f9ca158f5a9f04f6a2
|
|||
'OC\\' => 3,
|
||||
'OCP\\' => 4,
|
||||
),
|
||||
'B' =>
|
||||
array (
|
||||
'Bamarni\\Composer\\Bin\\' => 21,
|
||||
),
|
||||
);
|
||||
|
||||
public static $prefixDirsPsr4 = array (
|
||||
|
|
@ -36,10 +32,6 @@ class ComposerStaticInit749170dad3f5e7f9ca158f5a9f04f6a2
|
|||
array (
|
||||
0 => __DIR__ . '/../../..' . '/lib/public',
|
||||
),
|
||||
'Bamarni\\Composer\\Bin\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/bamarni/composer-bin-plugin/src',
|
||||
),
|
||||
);
|
||||
|
||||
public static $fallbackDirsPsr4 = array (
|
||||
|
|
@ -926,6 +918,7 @@ class ComposerStaticInit749170dad3f5e7f9ca158f5a9f04f6a2
|
|||
'OC\\App\\AppStore\\Bundles\\EnterpriseBundle' => __DIR__ . '/../../..' . '/lib/private/App/AppStore/Bundles/EnterpriseBundle.php',
|
||||
'OC\\App\\AppStore\\Bundles\\GroupwareBundle' => __DIR__ . '/../../..' . '/lib/private/App/AppStore/Bundles/GroupwareBundle.php',
|
||||
'OC\\App\\AppStore\\Bundles\\HubBundle' => __DIR__ . '/../../..' . '/lib/private/App/AppStore/Bundles/HubBundle.php',
|
||||
'OC\\App\\AppStore\\Bundles\\PublicSectorBundle' => __DIR__ . '/../../..' . '/lib/private/App/AppStore/Bundles/PublicSectorBundle.php',
|
||||
'OC\\App\\AppStore\\Bundles\\SocialSharingBundle' => __DIR__ . '/../../..' . '/lib/private/App/AppStore/Bundles/SocialSharingBundle.php',
|
||||
'OC\\App\\AppStore\\Fetcher\\AppFetcher' => __DIR__ . '/../../..' . '/lib/private/App/AppStore/Fetcher/AppFetcher.php',
|
||||
'OC\\App\\AppStore\\Fetcher\\CategoryFetcher' => __DIR__ . '/../../..' . '/lib/private/App/AppStore/Fetcher/CategoryFetcher.php',
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@ class BundleFetcher {
|
|||
new GroupwareBundle($this->l10n),
|
||||
new SocialSharingBundle($this->l10n),
|
||||
new EducationBundle($this->l10n),
|
||||
new PublicSectorBundle($this->l10n),
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
51
lib/private/App/AppStore/Bundles/PublicSectorBundle.php
Normal file
51
lib/private/App/AppStore/Bundles/PublicSectorBundle.php
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
<?php
|
||||
/**
|
||||
* @copyright Copyright (c) 2024 Stephan Orbaugh <stephan.orbaugh@nextcloud.com>
|
||||
*
|
||||
* @author Stephan Orbaugh <stephan.orbaugh@nextcloud.com>
|
||||
*
|
||||
* @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 OC\App\AppStore\Bundles;
|
||||
|
||||
class PublicSectorBundle extends Bundle {
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getName(): string {
|
||||
return $this->l10n->t('Public sector bundle');
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getAppIdentifiers(): array {
|
||||
|
||||
return [
|
||||
'files_confidential',
|
||||
'forms',
|
||||
'collectives',
|
||||
'files_antivirus',
|
||||
'twofactor_nextcloud_notification',
|
||||
'tables',
|
||||
'richdocuments',
|
||||
'admin_audit',
|
||||
'files_retention',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -26,6 +26,7 @@ use OC\App\AppStore\Bundles\EducationBundle;
|
|||
use OC\App\AppStore\Bundles\EnterpriseBundle;
|
||||
use OC\App\AppStore\Bundles\GroupwareBundle;
|
||||
use OC\App\AppStore\Bundles\HubBundle;
|
||||
use OC\App\AppStore\Bundles\PublicSectorBundle;
|
||||
use OC\App\AppStore\Bundles\SocialSharingBundle;
|
||||
use OCP\IL10N;
|
||||
use Test\TestCase;
|
||||
|
|
@ -53,6 +54,7 @@ class BundleFetcherTest extends TestCase {
|
|||
new GroupwareBundle($this->l10n),
|
||||
new SocialSharingBundle($this->l10n),
|
||||
new EducationBundle($this->l10n),
|
||||
new PublicSectorBundle($this->l10n),
|
||||
];
|
||||
$this->assertEquals($expected, $this->bundleFetcher->getBundles());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue