Differential D21765 Diff 51901 src/applications/almanac/servicetype/AlmanacClusterRepositoryServiceType.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/almanac/servicetype/AlmanacClusterRepositoryServiceType.php
<?php | <?php | ||||
final class AlmanacClusterRepositoryServiceType | final class AlmanacClusterRepositoryServiceType | ||||
extends AlmanacClusterServiceType { | extends AlmanacClusterServiceType { | ||||
const SERVICETYPE = 'cluster.repository'; | const SERVICETYPE = 'cluster.repository'; | ||||
public function getServiceTypeShortName() { | public function getServiceTypeShortName() { | ||||
return pht('Cluster Repository'); | return pht('Cluster Repository'); | ||||
} | } | ||||
public function getServiceTypeName() { | public function getServiceTypeName() { | ||||
return pht('Phabricator Cluster: Repository'); | return pht('Cluster: Repository'); | ||||
} | } | ||||
public function getServiceTypeDescription() { | public function getServiceTypeDescription() { | ||||
return pht( | return pht( | ||||
'Defines a repository service for use in a Phabricator cluster.'); | 'Defines a repository service for use in a cluster.'); | ||||
} | } | ||||
public function getFieldSpecifications() { | public function getFieldSpecifications() { | ||||
return array( | return array( | ||||
'closed' => id(new PhabricatorBoolEditField()) | 'closed' => id(new PhabricatorBoolEditField()) | ||||
->setOptions( | ->setOptions( | ||||
pht('Allow New Repositories'), | pht('Allow New Repositories'), | ||||
pht('Prevent New Repositories')) | pht('Prevent New Repositories')) | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |