mirror of
https://github.com/verdigado/organization_folders.git
synced 2024-11-22 04:38:09 +01:00
consistently use AmE spelling of organization
This commit is contained in:
parent
02bb8a330f
commit
f9ad16c3fe
4 changed files with 25 additions and 25 deletions
|
@ -3,7 +3,7 @@
|
|||
xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
|
||||
<id>organization_folders</id>
|
||||
<name>Organization Folders</name>
|
||||
<summary>Managed Groupfolders for your Organisation</summary>
|
||||
<summary>Managed Groupfolders for your Organization</summary>
|
||||
<description><![CDATA[]]></description>
|
||||
<version>0.0.1</version>
|
||||
<licence>agpl</licence>
|
||||
|
|
|
@ -6,22 +6,22 @@ namespace OCA\OrganizationFolders\Events;
|
|||
|
||||
use OCP\EventDispatcher\Event;
|
||||
|
||||
use OCA\OrganizationFolders\Transport\OrganisationProviderManager;
|
||||
use OCA\OrganizationFolders\Transport\OrganizationProviderManager;
|
||||
|
||||
/**
|
||||
* This event is triggered during the initialization of Organisation Folders.
|
||||
* This event is triggered during the initialization of Organization Folders.
|
||||
*/
|
||||
class RegisterOrganisationProviderEvent extends Event {
|
||||
class RegisterOrganizationProviderEvent extends Event {
|
||||
|
||||
/** @var OrganisationProviderManager */
|
||||
private $organisationProviderManager;
|
||||
/** @var OrganizationProviderManager */
|
||||
private $organizationProviderManager;
|
||||
|
||||
public function __construct(OrganisationProviderManager $organisationProviderManager) {
|
||||
public function __construct(OrganizationProviderManager $organizationProviderManager) {
|
||||
parent::__construct();
|
||||
$this->organisationProviderManager = $organisationProviderManager;
|
||||
$this->organizationProviderManager = $organizationProviderManager;
|
||||
}
|
||||
|
||||
public function getOrganisationProviderManager(): OrganisationProviderManager {
|
||||
return $this->organisationProviderManager;
|
||||
public function getOrganizationProviderManager(): OrganizationProviderManager {
|
||||
return $this->organizationProviderManager;
|
||||
}
|
||||
}
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace OCA\OrganizationFolders\OrganisationProvider;
|
||||
namespace OCA\OrganizationFolders\OrganizationProvider;
|
||||
|
||||
abstract class OrganisationProvider {
|
||||
abstract class OrganizationProvider {
|
||||
protected $id;
|
||||
|
||||
public function getId() {
|
||||
|
|
|
@ -2,39 +2,39 @@
|
|||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace OCA\OrganizationFolders\OrganisationProvider;
|
||||
namespace OCA\OrganizationFolders\OrganizationProvider;
|
||||
|
||||
use OCP\EventDispatcher\IEventDispatcher;
|
||||
use OCP\Server;
|
||||
|
||||
use OCA\OrganizationFolders\Events\RegisterOrganisationProviderEvent;
|
||||
use OCA\OrganizationFolders\Events\RegisterOrganizationProviderEvent;
|
||||
|
||||
class OrganisationProviderManager {
|
||||
private array $organisationProviders = [];
|
||||
class OrganizationProviderManager {
|
||||
private array $organizationProviders = [];
|
||||
|
||||
public function __construct(
|
||||
IEventDispatcher $dispatcher,
|
||||
) {
|
||||
$event = new RegisterOrganisationProviderEvent($this);
|
||||
$event = new RegisterOrganizationProviderEvent($this);
|
||||
$dispatcher->dispatchTyped($event);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return OrganisationProvider[]
|
||||
* @return OrganizationProvider[]
|
||||
*/
|
||||
public function getOrganisationProviders(): array {
|
||||
return $this->organisationProviders;
|
||||
public function getOrganizationProviders(): array {
|
||||
return $this->organizationProviders;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return OrganisationProvider
|
||||
* @return OrganizationProvider
|
||||
*/
|
||||
public function getOrganisationProvider($id): ?OrganisationProvider {
|
||||
return $this->organisationProviders[$id];
|
||||
public function getOrganizationProvider($id): ?OrganizationProvider {
|
||||
return $this->organizationProviders[$id];
|
||||
}
|
||||
|
||||
public function registerOrganisationProvider(OrganisationProvider $organisationProvider): self {
|
||||
$this->organisationProviders[$organisationProvider->getId()] = $organisationProvider;
|
||||
public function registerOrganizationProvider(OrganizationProvider $organizationProvider): self {
|
||||
$this->organizationProviders[$organizationProvider->getId()] = $organizationProvider;
|
||||
return $this;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue