Differential D17158 Diff 41267 src/applications/repository/conduit/RepositoryQueryConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/conduit/RepositoryQueryConduitAPIMethod.php
<?php | <?php | ||||
final class RepositoryQueryConduitAPIMethod | final class RepositoryQueryConduitAPIMethod | ||||
extends RepositoryConduitAPIMethod { | extends RepositoryConduitAPIMethod { | ||||
public function getAPIMethodName() { | public function getAPIMethodName() { | ||||
return 'repository.query'; | return 'repository.query'; | ||||
} | } | ||||
public function getMethodStatus() { | public function getMethodStatus() { | ||||
return self::METHOD_STATUS_UNSTABLE; | return self::METHOD_STATUS_FROZEN; | ||||
} | } | ||||
public function getMethodStatusDescription() { | public function getMethodStatusDescription() { | ||||
return pht('Repository methods are new and subject to change.'); | return pht( | ||||
'This method is frozen and will eventually be deprecated. New code '. | |||||
'should use "diffusion.repository.query" instead.'); | |||||
} | } | ||||
public function getMethodDescription() { | public function getMethodDescription() { | ||||
return pht('Query repositories.'); | return pht('Query repositories.'); | ||||
} | } | ||||
public function newQueryObject() { | public function newQueryObject() { | ||||
return new PhabricatorRepositoryQuery(); | return new PhabricatorRepositoryQuery(); | ||||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |