mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-15 17:21:10 +01:00
Merge branch 'master' into redesign-2015
This commit is contained in:
commit
53ef057b1b
353 changed files with 3289 additions and 855 deletions
|
@ -114,7 +114,7 @@ return array(
|
||||||
'rsrc/css/diviner/diviner-shared.css' => '38813222',
|
'rsrc/css/diviner/diviner-shared.css' => '38813222',
|
||||||
'rsrc/css/font/font-awesome.css' => 'e2e712fe',
|
'rsrc/css/font/font-awesome.css' => 'e2e712fe',
|
||||||
'rsrc/css/font/font-lato.css' => '5f05d817',
|
'rsrc/css/font/font-lato.css' => '5f05d817',
|
||||||
'rsrc/css/font/font-slabo.css' => '7a85ea13',
|
'rsrc/css/font/font-slabo.css' => '1f520937',
|
||||||
'rsrc/css/font/phui-font-icon-base.css' => '3dad2ae3',
|
'rsrc/css/font/phui-font-icon-base.css' => '3dad2ae3',
|
||||||
'rsrc/css/layout/phabricator-filetree-view.css' => 'fccf9f82',
|
'rsrc/css/layout/phabricator-filetree-view.css' => 'fccf9f82',
|
||||||
'rsrc/css/layout/phabricator-hovercard-view.css' => '0d665853',
|
'rsrc/css/layout/phabricator-hovercard-view.css' => '0d665853',
|
||||||
|
@ -370,10 +370,10 @@ return array(
|
||||||
'rsrc/js/application/doorkeeper/behavior-doorkeeper-tag.js' => 'e5822781',
|
'rsrc/js/application/doorkeeper/behavior-doorkeeper-tag.js' => 'e5822781',
|
||||||
'rsrc/js/application/files/behavior-icon-composer.js' => '8ef9ab58',
|
'rsrc/js/application/files/behavior-icon-composer.js' => '8ef9ab58',
|
||||||
'rsrc/js/application/files/behavior-launch-icon-composer.js' => '48086888',
|
'rsrc/js/application/files/behavior-launch-icon-composer.js' => '48086888',
|
||||||
'rsrc/js/application/herald/HeraldRuleEditor.js' => '271ffdd7',
|
'rsrc/js/application/herald/HeraldRuleEditor.js' => 'b2cae298',
|
||||||
'rsrc/js/application/herald/PathTypeahead.js' => 'f7fc67ec',
|
'rsrc/js/application/herald/PathTypeahead.js' => 'f7fc67ec',
|
||||||
'rsrc/js/application/herald/herald-rule-editor.js' => '7ebaeed3',
|
'rsrc/js/application/herald/herald-rule-editor.js' => '7ebaeed3',
|
||||||
'rsrc/js/application/maniphest/behavior-batch-editor.js' => 'f5d1233b',
|
'rsrc/js/application/maniphest/behavior-batch-editor.js' => '782ab6e7',
|
||||||
'rsrc/js/application/maniphest/behavior-batch-selector.js' => '7b98d7c5',
|
'rsrc/js/application/maniphest/behavior-batch-selector.js' => '7b98d7c5',
|
||||||
'rsrc/js/application/maniphest/behavior-line-chart.js' => '88f0c5b3',
|
'rsrc/js/application/maniphest/behavior-line-chart.js' => '88f0c5b3',
|
||||||
'rsrc/js/application/maniphest/behavior-list-edit.js' => 'a9f88de2',
|
'rsrc/js/application/maniphest/behavior-list-edit.js' => 'a9f88de2',
|
||||||
|
@ -390,7 +390,7 @@ return array(
|
||||||
'rsrc/js/application/phortune/behavior-stripe-payment-form.js' => '3f5d6dbf',
|
'rsrc/js/application/phortune/behavior-stripe-payment-form.js' => '3f5d6dbf',
|
||||||
'rsrc/js/application/phortune/behavior-test-payment-form.js' => 'fc91ab6c',
|
'rsrc/js/application/phortune/behavior-test-payment-form.js' => 'fc91ab6c',
|
||||||
'rsrc/js/application/phortune/phortune-credit-card-form.js' => '2290aeef',
|
'rsrc/js/application/phortune/phortune-credit-card-form.js' => '2290aeef',
|
||||||
'rsrc/js/application/policy/behavior-policy-control.js' => '9a340b3d',
|
'rsrc/js/application/policy/behavior-policy-control.js' => '7d470398',
|
||||||
'rsrc/js/application/policy/behavior-policy-rule-editor.js' => '5e9f347c',
|
'rsrc/js/application/policy/behavior-policy-rule-editor.js' => '5e9f347c',
|
||||||
'rsrc/js/application/ponder/behavior-votebox.js' => '4e9b766b',
|
'rsrc/js/application/ponder/behavior-votebox.js' => '4e9b766b',
|
||||||
'rsrc/js/application/projects/behavior-project-boards.js' => 'ba4fa35c',
|
'rsrc/js/application/projects/behavior-project-boards.js' => 'ba4fa35c',
|
||||||
|
@ -522,11 +522,11 @@ return array(
|
||||||
'diviner-shared-css' => '38813222',
|
'diviner-shared-css' => '38813222',
|
||||||
'font-fontawesome' => 'e2e712fe',
|
'font-fontawesome' => 'e2e712fe',
|
||||||
'font-lato' => '5f05d817',
|
'font-lato' => '5f05d817',
|
||||||
'font-slabo' => '7a85ea13',
|
'font-slabo' => '1f520937',
|
||||||
'global-drag-and-drop-css' => '697324ad',
|
'global-drag-and-drop-css' => '697324ad',
|
||||||
'harbormaster-css' => '49d64eb4',
|
'harbormaster-css' => '49d64eb4',
|
||||||
'herald-css' => '826075fa',
|
'herald-css' => '826075fa',
|
||||||
'herald-rule-editor' => '271ffdd7',
|
'herald-rule-editor' => 'b2cae298',
|
||||||
'herald-test-css' => '778b008e',
|
'herald-test-css' => '778b008e',
|
||||||
'inline-comment-summary-css' => '51efda3a',
|
'inline-comment-summary-css' => '51efda3a',
|
||||||
'javelin-aphlict' => '5359e785',
|
'javelin-aphlict' => '5359e785',
|
||||||
|
@ -585,7 +585,7 @@ return array(
|
||||||
'javelin-behavior-lightbox-attachments' => 'f8ba29d7',
|
'javelin-behavior-lightbox-attachments' => 'f8ba29d7',
|
||||||
'javelin-behavior-line-chart' => '88f0c5b3',
|
'javelin-behavior-line-chart' => '88f0c5b3',
|
||||||
'javelin-behavior-load-blame' => '42126667',
|
'javelin-behavior-load-blame' => '42126667',
|
||||||
'javelin-behavior-maniphest-batch-editor' => 'f5d1233b',
|
'javelin-behavior-maniphest-batch-editor' => '782ab6e7',
|
||||||
'javelin-behavior-maniphest-batch-selector' => '7b98d7c5',
|
'javelin-behavior-maniphest-batch-selector' => '7b98d7c5',
|
||||||
'javelin-behavior-maniphest-list-editor' => 'a9f88de2',
|
'javelin-behavior-maniphest-list-editor' => 'a9f88de2',
|
||||||
'javelin-behavior-maniphest-subpriority-editor' => '84845b5b',
|
'javelin-behavior-maniphest-subpriority-editor' => '84845b5b',
|
||||||
|
@ -622,7 +622,7 @@ return array(
|
||||||
'javelin-behavior-pholio-mock-view' => 'fbe497e7',
|
'javelin-behavior-pholio-mock-view' => 'fbe497e7',
|
||||||
'javelin-behavior-phui-dropdown-menu' => '54733475',
|
'javelin-behavior-phui-dropdown-menu' => '54733475',
|
||||||
'javelin-behavior-phui-object-box-tabs' => '2bfa2836',
|
'javelin-behavior-phui-object-box-tabs' => '2bfa2836',
|
||||||
'javelin-behavior-policy-control' => '9a340b3d',
|
'javelin-behavior-policy-control' => '7d470398',
|
||||||
'javelin-behavior-policy-rule-editor' => '5e9f347c',
|
'javelin-behavior-policy-rule-editor' => '5e9f347c',
|
||||||
'javelin-behavior-ponder-votebox' => '4e9b766b',
|
'javelin-behavior-ponder-votebox' => '4e9b766b',
|
||||||
'javelin-behavior-project-boards' => 'ba4fa35c',
|
'javelin-behavior-project-boards' => 'ba4fa35c',
|
||||||
|
@ -973,6 +973,9 @@ return array(
|
||||||
'javelin-dom',
|
'javelin-dom',
|
||||||
'javelin-reactor-dom',
|
'javelin-reactor-dom',
|
||||||
),
|
),
|
||||||
|
'1f520937' => array(
|
||||||
|
'phui-fontkit-css',
|
||||||
|
),
|
||||||
'2035b9cb' => array(
|
'2035b9cb' => array(
|
||||||
'javelin-behavior',
|
'javelin-behavior',
|
||||||
'javelin-dom',
|
'javelin-dom',
|
||||||
|
@ -1010,15 +1013,6 @@ return array(
|
||||||
'phabricator-drag-and-drop-file-upload',
|
'phabricator-drag-and-drop-file-upload',
|
||||||
'phabricator-draggable-list',
|
'phabricator-draggable-list',
|
||||||
),
|
),
|
||||||
'271ffdd7' => array(
|
|
||||||
'multirow-row-manager',
|
|
||||||
'javelin-install',
|
|
||||||
'javelin-util',
|
|
||||||
'javelin-dom',
|
|
||||||
'javelin-stratcom',
|
|
||||||
'javelin-json',
|
|
||||||
'phabricator-prefab',
|
|
||||||
),
|
|
||||||
'2818f5ce' => array(
|
'2818f5ce' => array(
|
||||||
'javelin-install',
|
'javelin-install',
|
||||||
'javelin-util',
|
'javelin-util',
|
||||||
|
@ -1414,6 +1408,14 @@ return array(
|
||||||
'javelin-util',
|
'javelin-util',
|
||||||
'phabricator-busy',
|
'phabricator-busy',
|
||||||
),
|
),
|
||||||
|
'782ab6e7' => array(
|
||||||
|
'javelin-behavior',
|
||||||
|
'javelin-dom',
|
||||||
|
'javelin-util',
|
||||||
|
'phabricator-prefab',
|
||||||
|
'multirow-row-manager',
|
||||||
|
'javelin-json',
|
||||||
|
),
|
||||||
'7927a7d3' => array(
|
'7927a7d3' => array(
|
||||||
'javelin-behavior',
|
'javelin-behavior',
|
||||||
'javelin-quicksand',
|
'javelin-quicksand',
|
||||||
|
@ -1422,9 +1424,6 @@ return array(
|
||||||
'owners-path-editor',
|
'owners-path-editor',
|
||||||
'javelin-behavior',
|
'javelin-behavior',
|
||||||
),
|
),
|
||||||
'7a85ea13' => array(
|
|
||||||
'phui-fontkit-css',
|
|
||||||
),
|
|
||||||
'7b98d7c5' => array(
|
'7b98d7c5' => array(
|
||||||
'javelin-behavior',
|
'javelin-behavior',
|
||||||
'javelin-dom',
|
'javelin-dom',
|
||||||
|
@ -1437,6 +1436,15 @@ return array(
|
||||||
'javelin-request',
|
'javelin-request',
|
||||||
'javelin-router',
|
'javelin-router',
|
||||||
),
|
),
|
||||||
|
'7d470398' => array(
|
||||||
|
'javelin-behavior',
|
||||||
|
'javelin-dom',
|
||||||
|
'javelin-util',
|
||||||
|
'phuix-dropdown-menu',
|
||||||
|
'phuix-action-list-view',
|
||||||
|
'phuix-action-view',
|
||||||
|
'javelin-workflow',
|
||||||
|
),
|
||||||
'7e41274a' => array(
|
'7e41274a' => array(
|
||||||
'javelin-install',
|
'javelin-install',
|
||||||
),
|
),
|
||||||
|
@ -1582,15 +1590,6 @@ return array(
|
||||||
'javelin-dom',
|
'javelin-dom',
|
||||||
'javelin-reactor-dom',
|
'javelin-reactor-dom',
|
||||||
),
|
),
|
||||||
'9a340b3d' => array(
|
|
||||||
'javelin-behavior',
|
|
||||||
'javelin-dom',
|
|
||||||
'javelin-util',
|
|
||||||
'phuix-dropdown-menu',
|
|
||||||
'phuix-action-list-view',
|
|
||||||
'phuix-action-view',
|
|
||||||
'javelin-workflow',
|
|
||||||
),
|
|
||||||
'9f36c42d' => array(
|
'9f36c42d' => array(
|
||||||
'javelin-behavior',
|
'javelin-behavior',
|
||||||
'javelin-stratcom',
|
'javelin-stratcom',
|
||||||
|
@ -1707,6 +1706,15 @@ return array(
|
||||||
'javelin-uri',
|
'javelin-uri',
|
||||||
'javelin-request',
|
'javelin-request',
|
||||||
),
|
),
|
||||||
|
'b2cae298' => array(
|
||||||
|
'multirow-row-manager',
|
||||||
|
'javelin-install',
|
||||||
|
'javelin-util',
|
||||||
|
'javelin-dom',
|
||||||
|
'javelin-stratcom',
|
||||||
|
'javelin-json',
|
||||||
|
'phabricator-prefab',
|
||||||
|
),
|
||||||
'b3a4b884' => array(
|
'b3a4b884' => array(
|
||||||
'javelin-behavior',
|
'javelin-behavior',
|
||||||
'phabricator-prefab',
|
'phabricator-prefab',
|
||||||
|
@ -1970,14 +1978,6 @@ return array(
|
||||||
'javelin-request',
|
'javelin-request',
|
||||||
'phabricator-keyboard-shortcut',
|
'phabricator-keyboard-shortcut',
|
||||||
),
|
),
|
||||||
'f5d1233b' => array(
|
|
||||||
'javelin-behavior',
|
|
||||||
'javelin-dom',
|
|
||||||
'javelin-util',
|
|
||||||
'phabricator-prefab',
|
|
||||||
'multirow-row-manager',
|
|
||||||
'javelin-json',
|
|
||||||
),
|
|
||||||
'f6555212' => array(
|
'f6555212' => array(
|
||||||
'javelin-install',
|
'javelin-install',
|
||||||
'javelin-reactornode',
|
'javelin-reactornode',
|
||||||
|
|
2
resources/sql/autopatches/20150609.spaces.1.pholio.sql
Normal file
2
resources/sql/autopatches/20150609.spaces.1.pholio.sql
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
ALTER TABLE {$NAMESPACE}_pholio.pholio_mock
|
||||||
|
ADD spacePHID VARBINARY(64);
|
|
@ -0,0 +1,2 @@
|
||||||
|
ALTER TABLE {$NAMESPACE}_maniphest.maniphest_task
|
||||||
|
ADD spacePHID VARBINARY(64);
|
2
resources/sql/autopatches/20150610.spaces.1.desc.sql
Normal file
2
resources/sql/autopatches/20150610.spaces.1.desc.sql
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
ALTER TABLE {$NAMESPACE}_spaces.spaces_namespace
|
||||||
|
ADD description LONGTEXT COLLATE {$COLLATE_TEXT} NOT NULL;
|
16
resources/sql/autopatches/20150610.spaces.2.edge.sql
Normal file
16
resources/sql/autopatches/20150610.spaces.2.edge.sql
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
CREATE TABLE {$NAMESPACE}_spaces.edge (
|
||||||
|
src VARBINARY(64) NOT NULL,
|
||||||
|
type INT UNSIGNED NOT NULL,
|
||||||
|
dst VARBINARY(64) NOT NULL,
|
||||||
|
dateCreated INT UNSIGNED NOT NULL,
|
||||||
|
seq INT UNSIGNED NOT NULL,
|
||||||
|
dataID INT UNSIGNED,
|
||||||
|
PRIMARY KEY (src, type, dst),
|
||||||
|
KEY `src` (src, type, dateCreated, seq),
|
||||||
|
UNIQUE KEY `key_dst` (dst, type, src)
|
||||||
|
) ENGINE=InnoDB, COLLATE {$COLLATE_TEXT};
|
||||||
|
|
||||||
|
CREATE TABLE {$NAMESPACE}_spaces.edgedata (
|
||||||
|
id INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
||||||
|
data LONGTEXT NOT NULL COLLATE {$COLLATE_TEXT}
|
||||||
|
) ENGINE=InnoDB, COLLATE {$COLLATE_TEXT};
|
2
resources/sql/autopatches/20150610.spaces.3.archive.sql
Normal file
2
resources/sql/autopatches/20150610.spaces.3.archive.sql
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
ALTER TABLE {$NAMESPACE}_spaces.spaces_namespace
|
||||||
|
ADD isArchived BOOL NOT NULL;
|
19
resources/sql/autopatches/20150611.spaces.1.mailxaction.sql
Normal file
19
resources/sql/autopatches/20150611.spaces.1.mailxaction.sql
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
CREATE TABLE {$NAMESPACE}_metamta.metamta_applicationemailtransaction (
|
||||||
|
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||||
|
phid VARBINARY(64) NOT NULL,
|
||||||
|
authorPHID VARBINARY(64) NOT NULL,
|
||||||
|
objectPHID VARBINARY(64) NOT NULL,
|
||||||
|
viewPolicy VARBINARY(64) NOT NULL,
|
||||||
|
editPolicy VARBINARY(64) NOT NULL,
|
||||||
|
commentPHID VARBINARY(64) DEFAULT NULL,
|
||||||
|
commentVersion INT UNSIGNED NOT NULL,
|
||||||
|
transactionType VARCHAR(32) COLLATE {$COLLATE_TEXT} NOT NULL,
|
||||||
|
oldValue LONGTEXT COLLATE {$COLLATE_TEXT} NOT NULL,
|
||||||
|
newValue LONGTEXT COLLATE {$COLLATE_TEXT} NOT NULL,
|
||||||
|
contentSource LONGTEXT COLLATE {$COLLATE_TEXT} NOT NULL,
|
||||||
|
metadata LONGTEXT COLLATE {$COLLATE_TEXT} NOT NULL,
|
||||||
|
dateCreated INT UNSIGNED NOT NULL,
|
||||||
|
dateModified INT UNSIGNED NOT NULL,
|
||||||
|
UNIQUE KEY `key_phid` (`phid`),
|
||||||
|
KEY `key_object` (`objectPHID`)
|
||||||
|
) ENGINE=InnoDB, COLLATE {$COLLATE_TEXT};
|
2
resources/sql/autopatches/20150611.spaces.2.appmail.sql
Normal file
2
resources/sql/autopatches/20150611.spaces.2.appmail.sql
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
ALTER TABLE {$NAMESPACE}_metamta.metamta_applicationemail
|
||||||
|
ADD spacePHID VARBINARY(64);
|
|
@ -26,7 +26,7 @@ foreach (new LiskMigrationIterator($table) as $repository) {
|
||||||
if ($proto == 'http' || $proto == 'https' || $proto == 'svn') {
|
if ($proto == 'http' || $proto == 'https' || $proto == 'svn') {
|
||||||
$username = $repository->getDetail('http-login');
|
$username = $repository->getDetail('http-login');
|
||||||
$secret = $repository->getDetail('http-pass');
|
$secret = $repository->getDetail('http-pass');
|
||||||
$type = PassphraseCredentialTypePassword::CREDENTIAL_TYPE;
|
$type = PassphrasePasswordCredentialType::CREDENTIAL_TYPE;
|
||||||
} else {
|
} else {
|
||||||
$username = $repository->getDetail('ssh-login');
|
$username = $repository->getDetail('ssh-login');
|
||||||
if (!$username) {
|
if (!$username) {
|
||||||
|
@ -42,10 +42,10 @@ foreach (new LiskMigrationIterator($table) as $repository) {
|
||||||
$file = $repository->getDetail('ssh-keyfile');
|
$file = $repository->getDetail('ssh-keyfile');
|
||||||
if ($file) {
|
if ($file) {
|
||||||
$secret = $file;
|
$secret = $file;
|
||||||
$type = PassphraseCredentialTypeSSHPrivateKeyFile::CREDENTIAL_TYPE;
|
$type = PassphraseSSHPrivateKeyFileCredentialType::CREDENTIAL_TYPE;
|
||||||
} else {
|
} else {
|
||||||
$secret = $repository->getDetail('ssh-key');
|
$secret = $repository->getDetail('ssh-key');
|
||||||
$type = PassphraseCredentialTypeSSHPrivateKeyText::CREDENTIAL_TYPE;
|
$type = PassphraseSSHPrivateKeyTextCredentialType::CREDENTIAL_TYPE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -5,7 +5,7 @@
|
||||||
* @task cookie Managing Cookies
|
* @task cookie Managing Cookies
|
||||||
* @task cluster Working With a Phabricator Cluster
|
* @task cluster Working With a Phabricator Cluster
|
||||||
*/
|
*/
|
||||||
final class AphrontRequest {
|
final class AphrontRequest extends Phobject {
|
||||||
|
|
||||||
// NOTE: These magic request-type parameters are automatically included in
|
// NOTE: These magic request-type parameters are automatically included in
|
||||||
// certain requests (e.g., by phabricator_form(), JX.Request,
|
// certain requests (e.g., by phabricator_form(), JX.Request,
|
||||||
|
@ -27,6 +27,7 @@ final class AphrontRequest {
|
||||||
private $user;
|
private $user;
|
||||||
private $applicationConfiguration;
|
private $applicationConfiguration;
|
||||||
private $uriData;
|
private $uriData;
|
||||||
|
private $cookiePrefix;
|
||||||
|
|
||||||
public function __construct($host, $path) {
|
public function __construct($host, $path) {
|
||||||
$this->host = $host;
|
$this->host = $host;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class AphrontURIMapper {
|
final class AphrontURIMapper extends Phobject {
|
||||||
|
|
||||||
private $map;
|
private $map;
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
/**
|
/**
|
||||||
* @task routing URI Routing
|
* @task routing URI Routing
|
||||||
*/
|
*/
|
||||||
abstract class AphrontApplicationConfiguration {
|
abstract class AphrontApplicationConfiguration extends Phobject {
|
||||||
|
|
||||||
private $request;
|
private $request;
|
||||||
private $host;
|
private $host;
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
final class AphrontPlainTextResponse extends AphrontResponse {
|
final class AphrontPlainTextResponse extends AphrontResponse {
|
||||||
|
|
||||||
|
private $content;
|
||||||
|
|
||||||
public function setContent($content) {
|
public function setContent($content) {
|
||||||
$this->content = $content;
|
$this->content = $content;
|
||||||
return $this;
|
return $this;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
abstract class AphrontResponse {
|
abstract class AphrontResponse extends Phobject {
|
||||||
|
|
||||||
private $request;
|
private $request;
|
||||||
private $cacheable = false;
|
private $cacheable = false;
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
* @task write Writing Response Components
|
* @task write Writing Response Components
|
||||||
* @task emit Emitting the Response
|
* @task emit Emitting the Response
|
||||||
*/
|
*/
|
||||||
abstract class AphrontHTTPSink {
|
abstract class AphrontHTTPSink extends Phobject {
|
||||||
|
|
||||||
|
|
||||||
/* -( Writing Response Components )---------------------------------------- */
|
/* -( Writing Response Components )---------------------------------------- */
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
final class AlmanacServiceTypeTestCase extends PhabricatorTestCase {
|
||||||
|
|
||||||
|
public function testGetAllServiceTypes() {
|
||||||
|
AlmanacServiceType::getAllServiceTypes();
|
||||||
|
$this->assertTrue(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class AphlictDropdownDataQuery {
|
final class AphlictDropdownDataQuery extends Phobject {
|
||||||
|
|
||||||
private $viewer;
|
private $viewer;
|
||||||
private $notificationData;
|
private $notificationData;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class PhabricatorAuditActionConstants {
|
final class PhabricatorAuditActionConstants extends Phobject {
|
||||||
|
|
||||||
const CONCERN = 'concern';
|
const CONCERN = 'concern';
|
||||||
const ACCEPT = 'accept';
|
const ACCEPT = 'accept';
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class PhabricatorAuditCommitStatusConstants {
|
final class PhabricatorAuditCommitStatusConstants extends Phobject {
|
||||||
|
|
||||||
const NONE = 0;
|
const NONE = 0;
|
||||||
const NEEDS_AUDIT = 1;
|
const NEEDS_AUDIT = 1;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class PhabricatorAuditStatusConstants {
|
final class PhabricatorAuditStatusConstants extends Phobject {
|
||||||
|
|
||||||
const NONE = '';
|
const NONE = '';
|
||||||
const AUDIT_NOT_REQUIRED = 'audit-not-required';
|
const AUDIT_NOT_REQUIRED = 'audit-not-required';
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class PhabricatorAuditInlineComment
|
final class PhabricatorAuditInlineComment
|
||||||
|
extends Phobject
|
||||||
implements PhabricatorInlineCommentInterface {
|
implements PhabricatorInlineCommentInterface {
|
||||||
|
|
||||||
private $proxy;
|
private $proxy;
|
||||||
|
|
|
@ -71,7 +71,7 @@ final class PhabricatorAuthStartController
|
||||||
'This Phabricator install is not configured with any enabled '.
|
'This Phabricator install is not configured with any enabled '.
|
||||||
'authentication providers which can be used to log in. If you '.
|
'authentication providers which can be used to log in. If you '.
|
||||||
'have accidentally locked yourself out by disabling all providers, '.
|
'have accidentally locked yourself out by disabling all providers, '.
|
||||||
'you can use `%s` to recover access to an administrative account.'.
|
'you can use `%s` to recover access to an administrative account.',
|
||||||
'phabricator/bin/auth recover <username>'));
|
'phabricator/bin/auth recover <username>'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class PhabricatorAuthHighSecurityToken {}
|
final class PhabricatorAuthHighSecurityToken extends Phobject {}
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
final class PhabricatorAuthFactorTestCase extends PhabricatorTestCase {
|
||||||
|
|
||||||
|
public function testGetAllFactors() {
|
||||||
|
PhabricatorAuthFactor::getAllFactors();
|
||||||
|
$this->assertTrue(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
abstract class PhabricatorAuthProvider {
|
abstract class PhabricatorAuthProvider extends Phobject {
|
||||||
|
|
||||||
private $providerConfig;
|
private $providerConfig;
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,9 @@
|
||||||
* @task fact Fact Integration
|
* @task fact Fact Integration
|
||||||
* @task meta Application Management
|
* @task meta Application Management
|
||||||
*/
|
*/
|
||||||
abstract class PhabricatorApplication implements PhabricatorPolicyInterface {
|
abstract class PhabricatorApplication
|
||||||
|
extends Phobject
|
||||||
|
implements PhabricatorPolicyInterface {
|
||||||
|
|
||||||
const MAX_STATUS_ITEMS = 100;
|
const MAX_STATUS_ITEMS = 100;
|
||||||
|
|
||||||
|
@ -17,7 +19,7 @@ abstract class PhabricatorApplication implements PhabricatorPolicyInterface {
|
||||||
const GROUP_ADMIN = 'admin';
|
const GROUP_ADMIN = 'admin';
|
||||||
const GROUP_DEVELOPER = 'developer';
|
const GROUP_DEVELOPER = 'developer';
|
||||||
|
|
||||||
public static function getApplicationGroups() {
|
final public static function getApplicationGroups() {
|
||||||
return array(
|
return array(
|
||||||
self::GROUP_CORE => pht('Core Applications'),
|
self::GROUP_CORE => pht('Core Applications'),
|
||||||
self::GROUP_UTILITIES => pht('Utilities'),
|
self::GROUP_UTILITIES => pht('Utilities'),
|
||||||
|
@ -35,7 +37,7 @@ abstract class PhabricatorApplication implements PhabricatorPolicyInterface {
|
||||||
return pht('%s Application', $this->getName());
|
return pht('%s Application', $this->getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function isInstalled() {
|
final public function isInstalled() {
|
||||||
if (!$this->canUninstall()) {
|
if (!$this->canUninstall()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -133,7 +135,7 @@ abstract class PhabricatorApplication implements PhabricatorPolicyInterface {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getPHID() {
|
final public function getPHID() {
|
||||||
return 'PHID-APPS-'.get_class($this);
|
return 'PHID-APPS-'.get_class($this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -145,7 +147,7 @@ abstract class PhabricatorApplication implements PhabricatorPolicyInterface {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getApplicationURI($path = '') {
|
final public function getApplicationURI($path = '') {
|
||||||
return $this->getBaseURI().ltrim($path, '/');
|
return $this->getBaseURI().ltrim($path, '/');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -169,7 +171,7 @@ abstract class PhabricatorApplication implements PhabricatorPolicyInterface {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getHelpMenuItems(PhabricatorUser $viewer) {
|
final public function getHelpMenuItems(PhabricatorUser $viewer) {
|
||||||
$items = array();
|
$items = array();
|
||||||
|
|
||||||
$articles = $this->getHelpDocumentationArticles($viewer);
|
$articles = $this->getHelpDocumentationArticles($viewer);
|
||||||
|
@ -249,7 +251,7 @@ abstract class PhabricatorApplication implements PhabricatorPolicyInterface {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getInboundEmailSupportLink() {
|
final protected function getInboundEmailSupportLink() {
|
||||||
return PhabricatorEnv::getDocLink('Configuring Inbound Email');
|
return PhabricatorEnv::getDocLink('Configuring Inbound Email');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -286,7 +288,7 @@ abstract class PhabricatorApplication implements PhabricatorPolicyInterface {
|
||||||
* @return string
|
* @return string
|
||||||
* @task ui
|
* @task ui
|
||||||
*/
|
*/
|
||||||
public static function formatStatusCount(
|
final public static function formatStatusCount(
|
||||||
$count,
|
$count,
|
||||||
$limit_string = '%s',
|
$limit_string = '%s',
|
||||||
$base_string = '%d') {
|
$base_string = '%d') {
|
||||||
|
@ -359,7 +361,7 @@ abstract class PhabricatorApplication implements PhabricatorPolicyInterface {
|
||||||
/* -( Application Management )--------------------------------------------- */
|
/* -( Application Management )--------------------------------------------- */
|
||||||
|
|
||||||
|
|
||||||
public static function getByClass($class_name) {
|
final public static function getByClass($class_name) {
|
||||||
$selected = null;
|
$selected = null;
|
||||||
$applications = self::getAllApplications();
|
$applications = self::getAllApplications();
|
||||||
|
|
||||||
|
@ -377,7 +379,7 @@ abstract class PhabricatorApplication implements PhabricatorPolicyInterface {
|
||||||
return $selected;
|
return $selected;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getAllApplications() {
|
final public static function getAllApplications() {
|
||||||
static $applications;
|
static $applications;
|
||||||
|
|
||||||
if ($applications === null) {
|
if ($applications === null) {
|
||||||
|
@ -401,7 +403,7 @@ abstract class PhabricatorApplication implements PhabricatorPolicyInterface {
|
||||||
return $applications;
|
return $applications;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getAllInstalledApplications() {
|
final public static function getAllInstalledApplications() {
|
||||||
$all_applications = self::getAllApplications();
|
$all_applications = self::getAllApplications();
|
||||||
$apps = array();
|
$apps = array();
|
||||||
foreach ($all_applications as $app) {
|
foreach ($all_applications as $app) {
|
||||||
|
@ -426,7 +428,7 @@ abstract class PhabricatorApplication implements PhabricatorPolicyInterface {
|
||||||
* @return bool True if the class is installed.
|
* @return bool True if the class is installed.
|
||||||
* @task meta
|
* @task meta
|
||||||
*/
|
*/
|
||||||
public static function isClassInstalled($class) {
|
final public static function isClassInstalled($class) {
|
||||||
return self::getByClass($class)->isInstalled();
|
return self::getByClass($class)->isInstalled();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -443,7 +445,7 @@ abstract class PhabricatorApplication implements PhabricatorPolicyInterface {
|
||||||
* @return bool True if the class is installed for the viewer.
|
* @return bool True if the class is installed for the viewer.
|
||||||
* @task meta
|
* @task meta
|
||||||
*/
|
*/
|
||||||
public static function isClassInstalledForViewer(
|
final public static function isClassInstalledForViewer(
|
||||||
$class,
|
$class,
|
||||||
PhabricatorUser $viewer) {
|
PhabricatorUser $viewer) {
|
||||||
|
|
||||||
|
@ -502,7 +504,7 @@ abstract class PhabricatorApplication implements PhabricatorPolicyInterface {
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getCustomPolicySetting($capability) {
|
final private function getCustomPolicySetting($capability) {
|
||||||
if (!$this->isCapabilityEditable($capability)) {
|
if (!$this->isCapabilityEditable($capability)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -528,7 +530,7 @@ abstract class PhabricatorApplication implements PhabricatorPolicyInterface {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private function getCustomCapabilitySpecification($capability) {
|
final private function getCustomCapabilitySpecification($capability) {
|
||||||
$custom = $this->getCustomCapabilities();
|
$custom = $this->getCustomCapabilities();
|
||||||
if (!isset($custom[$capability])) {
|
if (!isset($custom[$capability])) {
|
||||||
throw new Exception(pht("Unknown capability '%s'!", $capability));
|
throw new Exception(pht("Unknown capability '%s'!", $capability));
|
||||||
|
@ -536,7 +538,7 @@ abstract class PhabricatorApplication implements PhabricatorPolicyInterface {
|
||||||
return $custom[$capability];
|
return $custom[$capability];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getCapabilityLabel($capability) {
|
final public function getCapabilityLabel($capability) {
|
||||||
switch ($capability) {
|
switch ($capability) {
|
||||||
case PhabricatorPolicyCapability::CAN_VIEW:
|
case PhabricatorPolicyCapability::CAN_VIEW:
|
||||||
return pht('Can Use Application');
|
return pht('Can Use Application');
|
||||||
|
@ -552,7 +554,7 @@ abstract class PhabricatorApplication implements PhabricatorPolicyInterface {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function isCapabilityEditable($capability) {
|
final public function isCapabilityEditable($capability) {
|
||||||
switch ($capability) {
|
switch ($capability) {
|
||||||
case PhabricatorPolicyCapability::CAN_VIEW:
|
case PhabricatorPolicyCapability::CAN_VIEW:
|
||||||
return $this->canUninstall();
|
return $this->canUninstall();
|
||||||
|
@ -564,7 +566,7 @@ abstract class PhabricatorApplication implements PhabricatorPolicyInterface {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getCapabilityCaption($capability) {
|
final public function getCapabilityCaption($capability) {
|
||||||
switch ($capability) {
|
switch ($capability) {
|
||||||
case PhabricatorPolicyCapability::CAN_VIEW:
|
case PhabricatorPolicyCapability::CAN_VIEW:
|
||||||
if (!$this->canUninstall()) {
|
if (!$this->canUninstall()) {
|
||||||
|
@ -582,6 +584,17 @@ abstract class PhabricatorApplication implements PhabricatorPolicyInterface {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final public function getCapabilityTemplatePHIDType($capability) {
|
||||||
|
switch ($capability) {
|
||||||
|
case PhabricatorPolicyCapability::CAN_VIEW:
|
||||||
|
case PhabricatorPolicyCapability::CAN_EDIT:
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
$spec = $this->getCustomCapabilitySpecification($capability);
|
||||||
|
return idx($spec, 'template');
|
||||||
|
}
|
||||||
|
|
||||||
public function getApplicationSearchDocumentTypes() {
|
public function getApplicationSearchDocumentTypes() {
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
final class PhabricatorApplicationTestCase extends PhabricatorTestCase {
|
||||||
|
|
||||||
|
public function testGetAllApplications() {
|
||||||
|
PhabricatorApplication::getAllApplications();
|
||||||
|
$this->assertTrue(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
2
src/applications/cache/PhabricatorCaches.php
vendored
2
src/applications/cache/PhabricatorCaches.php
vendored
|
@ -7,7 +7,7 @@
|
||||||
* @task setup Setup Cache
|
* @task setup Setup Cache
|
||||||
* @task compress Compression
|
* @task compress Compression
|
||||||
*/
|
*/
|
||||||
final class PhabricatorCaches {
|
final class PhabricatorCaches extends Phobject {
|
||||||
|
|
||||||
private static $requestCache;
|
private static $requestCache;
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ final class PhabricatorCalendarEventEditController
|
||||||
$viewer = $request->getViewer();
|
$viewer = $request->getViewer();
|
||||||
$user_phid = $viewer->getPHID();
|
$user_phid = $viewer->getPHID();
|
||||||
$error_name = true;
|
$error_name = true;
|
||||||
$error_recurrence_end_date = true;
|
$error_recurrence_end_date = null;
|
||||||
$error_start_date = true;
|
$error_start_date = true;
|
||||||
$error_end_date = true;
|
$error_end_date = true;
|
||||||
$validation_exception = null;
|
$validation_exception = null;
|
||||||
|
@ -336,8 +336,7 @@ final class PhabricatorCalendarEventEditController
|
||||||
->setID($recurrence_end_date_id)
|
->setID($recurrence_end_date_id)
|
||||||
->setIsTimeDisabled(true)
|
->setIsTimeDisabled(true)
|
||||||
->setIsDisabled($recurrence_end_date_value->isDisabled())
|
->setIsDisabled($recurrence_end_date_value->isDisabled())
|
||||||
->setAllowNull(true)
|
->setAllowNull(true);
|
||||||
->isRequired(false);
|
|
||||||
|
|
||||||
$recurrence_frequency_select = id(new AphrontFormSelectControl())
|
$recurrence_frequency_select = id(new AphrontFormSelectControl())
|
||||||
->setName('frequency')
|
->setName('frequency')
|
||||||
|
|
|
@ -316,7 +316,7 @@ final class PhabricatorCalendarEvent extends PhabricatorCalendarDAO
|
||||||
case 'monthly':
|
case 'monthly':
|
||||||
return 'month';
|
return 'month';
|
||||||
case 'yearly':
|
case 'yearly':
|
||||||
return 'yearly';
|
return 'year';
|
||||||
default:
|
default:
|
||||||
return 'day';
|
return 'day';
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
* a Sunday -> Saturday list, whilest the profile view shows a more simple
|
* a Sunday -> Saturday list, whilest the profile view shows a more simple
|
||||||
* seven day rolling list of events.
|
* seven day rolling list of events.
|
||||||
*/
|
*/
|
||||||
final class CalendarTimeUtil {
|
final class CalendarTimeUtil extends Phobject {
|
||||||
|
|
||||||
public static function getCalendarEventEpochs(
|
public static function getCalendarEventEpochs(
|
||||||
PhabricatorUser $user,
|
PhabricatorUser $user,
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* Indirection layer which provisions for a terrifying future where we need to
|
* Indirection layer which provisions for a terrifying future where we need to
|
||||||
* build multiple resource responses per page.
|
* build multiple resource responses per page.
|
||||||
*/
|
*/
|
||||||
final class CelerityAPI {
|
final class CelerityAPI extends Phobject {
|
||||||
|
|
||||||
private static $response;
|
private static $response;
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* not need to invoke it directly; instead, you call higher-level Celerity APIs
|
* not need to invoke it directly; instead, you call higher-level Celerity APIs
|
||||||
* and it uses the resource map to satisfy your requests.
|
* and it uses the resource map to satisfy your requests.
|
||||||
*/
|
*/
|
||||||
final class CelerityResourceMap {
|
final class CelerityResourceMap extends Phobject {
|
||||||
|
|
||||||
private static $instances = array();
|
private static $instances = array();
|
||||||
|
|
||||||
|
@ -16,6 +16,7 @@ final class CelerityResourceMap {
|
||||||
private $packageMap;
|
private $packageMap;
|
||||||
private $nameMap;
|
private $nameMap;
|
||||||
private $hashMap;
|
private $hashMap;
|
||||||
|
private $componentMap;
|
||||||
|
|
||||||
public function __construct(CelerityResources $resources) {
|
public function __construct(CelerityResources $resources) {
|
||||||
$this->resources = $resources;
|
$this->resources = $resources;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class CelerityResourceMapGenerator {
|
final class CelerityResourceMapGenerator extends Phobject {
|
||||||
|
|
||||||
private $debug = false;
|
private $debug = false;
|
||||||
private $resources;
|
private $resources;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class CelerityResourceTransformer {
|
final class CelerityResourceTransformer extends Phobject {
|
||||||
|
|
||||||
private $minify;
|
private $minify;
|
||||||
private $rawURIMap;
|
private $rawURIMap;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class CeleritySpriteGenerator {
|
final class CeleritySpriteGenerator extends Phobject {
|
||||||
|
|
||||||
public function buildMenuSheet() {
|
public function buildMenuSheet() {
|
||||||
$sprites = array();
|
$sprites = array();
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* @{function:require_celerity_resource}, and then builds appropriate HTML or
|
* @{function:require_celerity_resource}, and then builds appropriate HTML or
|
||||||
* Ajax responses.
|
* Ajax responses.
|
||||||
*/
|
*/
|
||||||
final class CelerityStaticResourceResponse {
|
final class CelerityStaticResourceResponse extends Phobject {
|
||||||
|
|
||||||
private $symbols = array();
|
private $symbols = array();
|
||||||
private $needsResolve = true;
|
private $needsResolve = true;
|
||||||
|
|
|
@ -21,6 +21,7 @@ abstract class CelerityPhysicalResources extends CelerityResources {
|
||||||
|
|
||||||
public static function getAll() {
|
public static function getAll() {
|
||||||
static $resources_map;
|
static $resources_map;
|
||||||
|
|
||||||
if ($resources_map === null) {
|
if ($resources_map === null) {
|
||||||
$resources_map = array();
|
$resources_map = array();
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
/**
|
/**
|
||||||
* Defines the location of static resources.
|
* Defines the location of static resources.
|
||||||
*/
|
*/
|
||||||
abstract class CelerityResources {
|
abstract class CelerityResources extends Phobject {
|
||||||
|
|
||||||
private $map;
|
private $map;
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
final class CelerityPhysicalResourcesTestCase extends PhabricatorTestCase {
|
||||||
|
|
||||||
|
public function testGetAll() {
|
||||||
|
CelerityPhysicalResources::getAll();
|
||||||
|
$this->assertTrue(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -8,9 +8,10 @@
|
||||||
* $result = $call->execute();
|
* $result = $call->execute();
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
final class ConduitCall {
|
final class ConduitCall extends Phobject {
|
||||||
|
|
||||||
private $method;
|
private $method;
|
||||||
|
private $handler;
|
||||||
private $request;
|
private $request;
|
||||||
private $user;
|
private $user;
|
||||||
|
|
||||||
|
|
|
@ -115,7 +115,7 @@ abstract class ConduitAPIMethod
|
||||||
return head(explode('.', $this->getAPIMethodName(), 2));
|
return head(explode('.', $this->getAPIMethodName(), 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getConduitMethod($method_name) {
|
public static function loadAllConduitMethods() {
|
||||||
static $method_map = null;
|
static $method_map = null;
|
||||||
|
|
||||||
if ($method_map === null) {
|
if ($method_map === null) {
|
||||||
|
@ -143,6 +143,11 @@ abstract class ConduitAPIMethod
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return $method_map;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function getConduitMethod($method_name) {
|
||||||
|
$method_map = self::loadAllConduitMethods();
|
||||||
return idx($method_map, $method_name);
|
return idx($method_map, $method_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
final class ConduitAPIMethodTestCase extends PhabricatorTestCase {
|
||||||
|
|
||||||
|
public function testLoadAllConduitMethods() {
|
||||||
|
ConduitAPIMethod::loadAllConduitMethods();
|
||||||
|
$this->assertTrue(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class ConduitAPIRequest {
|
final class ConduitAPIRequest extends Phobject {
|
||||||
|
|
||||||
protected $params;
|
protected $params;
|
||||||
private $user;
|
private $user;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class ConduitAPIResponse {
|
final class ConduitAPIResponse extends Phobject {
|
||||||
|
|
||||||
private $result;
|
private $result;
|
||||||
private $errorCode;
|
private $errorCode;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
abstract class PhabricatorSetupCheck {
|
abstract class PhabricatorSetupCheck extends Phobject {
|
||||||
|
|
||||||
private $issues;
|
private $issues;
|
||||||
|
|
||||||
|
@ -111,7 +111,7 @@ abstract class PhabricatorSetupCheck {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
final public static function runAllChecks() {
|
final public static function loadAllChecks() {
|
||||||
$symbols = id(new PhutilSymbolLoader())
|
$symbols = id(new PhutilSymbolLoader())
|
||||||
->setAncestorClass(__CLASS__)
|
->setAncestorClass(__CLASS__)
|
||||||
->setConcreteOnly(true)
|
->setConcreteOnly(true)
|
||||||
|
@ -122,7 +122,11 @@ abstract class PhabricatorSetupCheck {
|
||||||
$checks[] = newv($symbol['name'], array());
|
$checks[] = newv($symbol['name'], array());
|
||||||
}
|
}
|
||||||
|
|
||||||
$checks = msort($checks, 'getExecutionOrder');
|
return msort($checks, 'getExecutionOrder');
|
||||||
|
}
|
||||||
|
|
||||||
|
final public static function runAllChecks() {
|
||||||
|
$checks = self::loadAllChecks();
|
||||||
|
|
||||||
$issues = array();
|
$issues = array();
|
||||||
foreach ($checks as $check) {
|
foreach ($checks as $check) {
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
final class PhabricatorSetupCheckTestCase extends PhabricatorTestCase {
|
||||||
|
|
||||||
|
public function testLoadAllChecks() {
|
||||||
|
PhabricatorSetupCheck::loadAllChecks();
|
||||||
|
$this->assertTrue(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
abstract class PhabricatorConfigOptionType {
|
abstract class PhabricatorConfigOptionType extends Phobject {
|
||||||
|
|
||||||
public function validateOption(PhabricatorConfigOption $option, $value) {
|
public function validateOption(PhabricatorConfigOption $option, $value) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class PhabricatorSetupIssue {
|
final class PhabricatorSetupIssue extends Phobject {
|
||||||
|
|
||||||
private $issueKey;
|
private $issueKey;
|
||||||
private $name;
|
private $name;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class PhabricatorConfigJSON {
|
final class PhabricatorConfigJSON extends Phobject {
|
||||||
/**
|
/**
|
||||||
* Properly format a JSON value.
|
* Properly format a JSON value.
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class ConpherenceTransactionRenderer {
|
final class ConpherenceTransactionRenderer extends Phobject {
|
||||||
|
|
||||||
public static function renderTransactions(
|
public static function renderTransactions(
|
||||||
PhabricatorUser $user,
|
PhabricatorUser $user,
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
abstract class ConpherenceConstants {}
|
abstract class ConpherenceConstants extends Phobject {}
|
||||||
|
|
|
@ -0,0 +1,42 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
final class ConpherenceThreadMembersPolicyRule
|
||||||
|
extends PhabricatorPolicyRule {
|
||||||
|
|
||||||
|
public function getObjectPolicyKey() {
|
||||||
|
return 'conpherence.members';
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getObjectPolicyName() {
|
||||||
|
return pht('Thread Members');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getPolicyExplanation() {
|
||||||
|
return pht('Members of this thread can take this action.');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getRuleDescription() {
|
||||||
|
return pht('thread members');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function canApplyToObject(PhabricatorPolicyInterface $object) {
|
||||||
|
return ($object instanceof ConpherenceThread);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function applyRule(
|
||||||
|
PhabricatorUser $viewer,
|
||||||
|
$value,
|
||||||
|
PhabricatorPolicyInterface $object) {
|
||||||
|
$viewer_phid = $viewer->getPHID();
|
||||||
|
if (!$viewer_phid) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return (bool)$object->getParticipantIfExists($viewer_phid);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getValueControlType() {
|
||||||
|
return self::CONTROL_TYPE_NONE;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class DarkConsoleCore {
|
final class DarkConsoleCore extends Phobject {
|
||||||
|
|
||||||
private $plugins = array();
|
private $plugins = array();
|
||||||
const STORAGE_VERSION = 1;
|
const STORAGE_VERSION = 1;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
abstract class DarkConsolePlugin {
|
abstract class DarkConsolePlugin extends Phobject {
|
||||||
|
|
||||||
private $data;
|
private $data;
|
||||||
private $request;
|
private $request;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class DarkConsoleErrorLogPluginAPI {
|
final class DarkConsoleErrorLogPluginAPI extends Phobject {
|
||||||
|
|
||||||
private static $errors = array();
|
private static $errors = array();
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* @phutil-external-symbol function xhprof_enable
|
* @phutil-external-symbol function xhprof_enable
|
||||||
* @phutil-external-symbol function xhprof_disable
|
* @phutil-external-symbol function xhprof_disable
|
||||||
*/
|
*/
|
||||||
final class DarkConsoleXHProfPluginAPI {
|
final class DarkConsoleXHProfPluginAPI extends Phobject {
|
||||||
|
|
||||||
private static $profilerStarted;
|
private static $profilerStarted;
|
||||||
private static $profilerRunning;
|
private static $profilerRunning;
|
||||||
|
|
|
@ -52,6 +52,7 @@ final class PhabricatorCountdownApplication extends PhabricatorApplication {
|
||||||
return array(
|
return array(
|
||||||
PhabricatorCountdownDefaultViewCapability::CAPABILITY => array(
|
PhabricatorCountdownDefaultViewCapability::CAPABILITY => array(
|
||||||
'caption' => pht('Default view policy for new countdowns.'),
|
'caption' => pht('Default view policy for new countdowns.'),
|
||||||
|
'template' => PhabricatorCountdownCountdownPHIDType::TYPECONST,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class PhabricatorDashboardLayoutConfig {
|
final class PhabricatorDashboardLayoutConfig extends Phobject {
|
||||||
|
|
||||||
const MODE_FULL = 'layout-mode-full';
|
const MODE_FULL = 'layout-mode-full';
|
||||||
const MODE_HALF_AND_HALF = 'layout-mode-half-and-half';
|
const MODE_HALF_AND_HALF = 'layout-mode-half-and-half';
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* Can't find a good place for this, so I'm putting it in the most notably
|
* Can't find a good place for this, so I'm putting it in the most notably
|
||||||
* wrong place.
|
* wrong place.
|
||||||
*/
|
*/
|
||||||
final class DifferentialGetWorkingCopy {
|
final class DifferentialGetWorkingCopy extends Phobject {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates and/or cleans a workspace for the requested repo.
|
* Creates and/or cleans a workspace for the requested repo.
|
||||||
|
|
|
@ -186,6 +186,7 @@ final class PhabricatorDifferentialApplication extends PhabricatorApplication {
|
||||||
return array(
|
return array(
|
||||||
DifferentialDefaultViewCapability::CAPABILITY => array(
|
DifferentialDefaultViewCapability::CAPABILITY => array(
|
||||||
'caption' => pht('Default view policy for newly created revisions.'),
|
'caption' => pht('Default view policy for newly created revisions.'),
|
||||||
|
'template' => DifferentialRevisionPHIDType::TYPECONST,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class DifferentialAction {
|
final class DifferentialAction extends Phobject {
|
||||||
|
|
||||||
const ACTION_CLOSE = 'commit';
|
const ACTION_CLOSE = 'commit';
|
||||||
const ACTION_COMMENT = 'none';
|
const ACTION_COMMENT = 'none';
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class DifferentialChangeType {
|
final class DifferentialChangeType extends Phobject {
|
||||||
|
|
||||||
const TYPE_ADD = 1;
|
const TYPE_ADD = 1;
|
||||||
const TYPE_CHANGE = 2;
|
const TYPE_CHANGE = 2;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class DifferentialLintStatus {
|
final class DifferentialLintStatus extends Phobject {
|
||||||
|
|
||||||
const LINT_NONE = 0;
|
const LINT_NONE = 0;
|
||||||
const LINT_OKAY = 1;
|
const LINT_OKAY = 1;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class DifferentialReviewerStatus {
|
final class DifferentialReviewerStatus extends Phobject {
|
||||||
|
|
||||||
const STATUS_BLOCKING = 'blocking';
|
const STATUS_BLOCKING = 'blocking';
|
||||||
const STATUS_ADDED = 'added';
|
const STATUS_ADDED = 'added';
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
// TODO: Unify with similar Repository constants
|
// TODO: Unify with similar Repository constants
|
||||||
final class DifferentialRevisionControlSystem {
|
final class DifferentialRevisionControlSystem extends Phobject {
|
||||||
|
|
||||||
const SVN = 'svn';
|
const SVN = 'svn';
|
||||||
const GIT = 'git';
|
const GIT = 'git';
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* application.
|
* application.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
final class DifferentialRevisionStatus {
|
final class DifferentialRevisionStatus extends Phobject {
|
||||||
|
|
||||||
const COLOR_STATUS_DEFAULT = 'status';
|
const COLOR_STATUS_DEFAULT = 'status';
|
||||||
const COLOR_STATUS_DARK = 'status-dark';
|
const COLOR_STATUS_DARK = 'status-dark';
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class DifferentialUnitStatus {
|
final class DifferentialUnitStatus extends Phobject {
|
||||||
|
|
||||||
const UNIT_NONE = 0;
|
const UNIT_NONE = 0;
|
||||||
const UNIT_OKAY = 1;
|
const UNIT_OKAY = 1;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class DifferentialUnitTestResult {
|
final class DifferentialUnitTestResult extends Phobject {
|
||||||
|
|
||||||
const RESULT_PASS = 'pass';
|
const RESULT_PASS = 'pass';
|
||||||
const RESULT_FAIL = 'fail';
|
const RESULT_FAIL = 'fail';
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
abstract class DifferentialLandingStrategy {
|
abstract class DifferentialLandingStrategy extends Phobject {
|
||||||
|
|
||||||
abstract public function processLandRequest(
|
abstract public function processLandRequest(
|
||||||
AphrontRequest $request,
|
AphrontRequest $request,
|
||||||
|
|
|
@ -48,8 +48,6 @@ final class PhabricatorHunksManagementMigrateWorkflow
|
||||||
new PhutilNumber($diff_len),
|
new PhutilNumber($diff_len),
|
||||||
sprintf('%.1f%%', 100 * ($diff_len / $old_len))));
|
sprintf('%.1f%%', 100 * ($diff_len / $old_len))));
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($saw_any_rows) {
|
if ($saw_any_rows) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class DifferentialChangesetParser {
|
final class DifferentialChangesetParser extends Phobject {
|
||||||
|
|
||||||
const HIGHLIGHT_BYTE_LIMIT = 262144;
|
const HIGHLIGHT_BYTE_LIMIT = 262144;
|
||||||
|
|
||||||
|
@ -55,6 +55,8 @@ final class DifferentialChangesetParser {
|
||||||
private $rangeEnd;
|
private $rangeEnd;
|
||||||
private $mask;
|
private $mask;
|
||||||
|
|
||||||
|
private $highlightEngine;
|
||||||
|
|
||||||
public function setRange($start, $end) {
|
public function setRange($start, $end) {
|
||||||
$this->rangeStart = $start;
|
$this->rangeStart = $start;
|
||||||
$this->rangeEnd = $end;
|
$this->rangeEnd = $end;
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
* @task support Support Methods
|
* @task support Support Methods
|
||||||
* @task internal Internals
|
* @task internal Internals
|
||||||
*/
|
*/
|
||||||
final class DifferentialCommitMessageParser {
|
final class DifferentialCommitMessageParser extends Phobject {
|
||||||
|
|
||||||
private $labelMap;
|
private $labelMap;
|
||||||
private $titleKey;
|
private $titleKey;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class DifferentialHunkParser {
|
final class DifferentialHunkParser extends Phobject {
|
||||||
|
|
||||||
private $oldLines;
|
private $oldLines;
|
||||||
private $newLines;
|
private $newLines;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
abstract class DifferentialChangesetRenderer {
|
abstract class DifferentialChangesetRenderer extends Phobject {
|
||||||
|
|
||||||
private $user;
|
private $user;
|
||||||
private $changeset;
|
private $changeset;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
final class DifferentialRawDiffRenderer {
|
|
||||||
|
final class DifferentialRawDiffRenderer extends Phobject {
|
||||||
|
|
||||||
private $changesets;
|
private $changesets;
|
||||||
private $format = 'unified';
|
private $format = 'unified';
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class DifferentialInlineComment
|
final class DifferentialInlineComment
|
||||||
|
extends Phobject
|
||||||
implements PhabricatorInlineCommentInterface {
|
implements PhabricatorInlineCommentInterface {
|
||||||
|
|
||||||
private $proxy;
|
private $proxy;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class DifferentialReviewer {
|
final class DifferentialReviewer extends Phobject {
|
||||||
|
|
||||||
private $reviewerPHID;
|
private $reviewerPHID;
|
||||||
private $status;
|
private $status;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class DifferentialChangesetFileTreeSideNavBuilder {
|
final class DifferentialChangesetFileTreeSideNavBuilder extends Phobject {
|
||||||
|
|
||||||
private $title;
|
private $title;
|
||||||
private $baseURI;
|
private $baseURI;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class DiffusionLintSaveRunner {
|
final class DiffusionLintSaveRunner extends Phobject {
|
||||||
private $arc = 'arc';
|
private $arc = 'arc';
|
||||||
private $severity = ArcanistLintSeverity::SEVERITY_ADVICE;
|
private $severity = ArcanistLintSeverity::SEVERITY_ADVICE;
|
||||||
private $all = false;
|
private $all = false;
|
||||||
|
|
|
@ -140,11 +140,16 @@ final class PhabricatorDiffusionApplication extends PhabricatorApplication {
|
||||||
|
|
||||||
protected function getCustomCapabilities() {
|
protected function getCustomCapabilities() {
|
||||||
return array(
|
return array(
|
||||||
DiffusionDefaultViewCapability::CAPABILITY => array(),
|
DiffusionDefaultViewCapability::CAPABILITY => array(
|
||||||
|
'template' => PhabricatorRepositoryRepositoryPHIDType::TYPECONST,
|
||||||
|
),
|
||||||
DiffusionDefaultEditCapability::CAPABILITY => array(
|
DiffusionDefaultEditCapability::CAPABILITY => array(
|
||||||
'default' => PhabricatorPolicies::POLICY_ADMIN,
|
'default' => PhabricatorPolicies::POLICY_ADMIN,
|
||||||
|
'template' => PhabricatorRepositoryRepositoryPHIDType::TYPECONST,
|
||||||
|
),
|
||||||
|
DiffusionDefaultPushCapability::CAPABILITY => array(
|
||||||
|
'template' => PhabricatorRepositoryRepositoryPHIDType::TYPECONST,
|
||||||
),
|
),
|
||||||
DiffusionDefaultPushCapability::CAPABILITY => array(),
|
|
||||||
DiffusionCreateRepositoriesCapability::CAPABILITY => array(
|
DiffusionCreateRepositoriesCapability::CAPABILITY => array(
|
||||||
'default' => PhabricatorPolicies::POLICY_ADMIN,
|
'default' => PhabricatorPolicies::POLICY_ADMIN,
|
||||||
),
|
),
|
||||||
|
|
|
@ -591,8 +591,8 @@ final class DiffusionRepositoryCreateController
|
||||||
if ($this->isSSHProtocol($proto)) {
|
if ($this->isSSHProtocol($proto)) {
|
||||||
$c_credential->setLabel(pht('SSH Key'));
|
$c_credential->setLabel(pht('SSH Key'));
|
||||||
$c_credential->setCredentialType(
|
$c_credential->setCredentialType(
|
||||||
PassphraseCredentialTypeSSHPrivateKeyText::CREDENTIAL_TYPE);
|
PassphraseSSHPrivateKeyTextCredentialType::CREDENTIAL_TYPE);
|
||||||
$provides_type = PassphraseCredentialTypeSSHPrivateKey::PROVIDES_TYPE;
|
$provides_type = PassphraseSSHPrivateKeyCredentialType::PROVIDES_TYPE;
|
||||||
|
|
||||||
$page->addRemarkupInstructions(
|
$page->addRemarkupInstructions(
|
||||||
pht(
|
pht(
|
||||||
|
@ -607,8 +607,8 @@ final class DiffusionRepositoryCreateController
|
||||||
$c_credential->setLabel(pht('Password'));
|
$c_credential->setLabel(pht('Password'));
|
||||||
$c_credential->setAllowNull(true);
|
$c_credential->setAllowNull(true);
|
||||||
$c_credential->setCredentialType(
|
$c_credential->setCredentialType(
|
||||||
PassphraseCredentialTypePassword::CREDENTIAL_TYPE);
|
PassphrasePasswordCredentialType::CREDENTIAL_TYPE);
|
||||||
$provides_type = PassphraseCredentialTypePassword::PROVIDES_TYPE;
|
$provides_type = PassphrasePasswordCredentialType::PROVIDES_TYPE;
|
||||||
|
|
||||||
$page->addRemarkupInstructions(
|
$page->addRemarkupInstructions(
|
||||||
pht(
|
pht(
|
||||||
|
@ -663,7 +663,7 @@ final class DiffusionRepositoryCreateController
|
||||||
pht('You must choose an SSH credential to connect over SSH.'));
|
pht('You must choose an SSH credential to connect over SSH.'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$ssh_type = PassphraseCredentialTypeSSHPrivateKey::PROVIDES_TYPE;
|
$ssh_type = PassphraseSSHPrivateKeyCredentialType::PROVIDES_TYPE;
|
||||||
if ($credential->getProvidesType() !== $ssh_type) {
|
if ($credential->getProvidesType() !== $ssh_type) {
|
||||||
$c_credential->setError(pht('Invalid'));
|
$c_credential->setError(pht('Invalid'));
|
||||||
$page->addPageError(
|
$page->addPageError(
|
||||||
|
@ -674,7 +674,7 @@ final class DiffusionRepositoryCreateController
|
||||||
|
|
||||||
} else if ($this->isUsernamePasswordProtocol($proto)) {
|
} else if ($this->isUsernamePasswordProtocol($proto)) {
|
||||||
if ($credential) {
|
if ($credential) {
|
||||||
$password_type = PassphraseCredentialTypePassword::PROVIDES_TYPE;
|
$password_type = PassphrasePasswordCredentialType::PROVIDES_TYPE;
|
||||||
if ($credential->getProvidesType() !== $password_type) {
|
if ($credential->getProvidesType() !== $password_type) {
|
||||||
$c_credential->setError(pht('Invalid'));
|
$c_credential->setError(pht('Invalid'));
|
||||||
$page->addPageError(
|
$page->addPageError(
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class DiffusionBrowseResultSet {
|
final class DiffusionBrowseResultSet extends Phobject {
|
||||||
|
|
||||||
const REASON_IS_FILE = 'is-file';
|
const REASON_IS_FILE = 'is-file';
|
||||||
const REASON_IS_DELETED = 'is-deleted';
|
const REASON_IS_DELETED = 'is-deleted';
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class DiffusionFileContent {
|
final class DiffusionFileContent extends Phobject {
|
||||||
|
|
||||||
private $corpus;
|
private $corpus;
|
||||||
private $blameDict;
|
private $blameDict;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class DiffusionGitBranch {
|
final class DiffusionGitBranch extends Phobject {
|
||||||
|
|
||||||
const DEFAULT_GIT_REMOTE = 'origin';
|
const DEFAULT_GIT_REMOTE = 'origin';
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class DiffusionPathChange {
|
final class DiffusionPathChange extends Phobject {
|
||||||
|
|
||||||
private $path;
|
private $path;
|
||||||
private $commitIdentifier;
|
private $commitIdentifier;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class DiffusionRepositoryPath {
|
final class DiffusionRepositoryPath extends Phobject {
|
||||||
|
|
||||||
private $fullPath;
|
private $fullPath;
|
||||||
private $path;
|
private $path;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class DiffusionRepositoryTag {
|
final class DiffusionRepositoryTag extends Phobject {
|
||||||
|
|
||||||
private $author;
|
private $author;
|
||||||
private $epoch;
|
private $epoch;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class DiffusionMercurialWireProtocol {
|
final class DiffusionMercurialWireProtocol extends Phobject {
|
||||||
|
|
||||||
public static function getCommandArgs($command) {
|
public static function getCommandArgs($command) {
|
||||||
// We need to enumerate all of the Mercurial wire commands because the
|
// We need to enumerate all of the Mercurial wire commands because the
|
||||||
|
|
|
@ -193,6 +193,7 @@ final class DiffusionCommitQuery
|
||||||
if ($repo) {
|
if ($repo) {
|
||||||
$commit->attachRepository($repo);
|
$commit->attachRepository($repo);
|
||||||
} else {
|
} else {
|
||||||
|
$this->didRejectResult($commit);
|
||||||
unset($commits[$key]);
|
unset($commits[$key]);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class DiffusionPathQuery {
|
final class DiffusionPathQuery extends Phobject {
|
||||||
|
|
||||||
private $pathIDs;
|
private $pathIDs;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class DiffusionRenameHistoryQuery {
|
final class DiffusionRenameHistoryQuery extends Phobject {
|
||||||
|
|
||||||
private $oldCommit;
|
private $oldCommit;
|
||||||
private $wasCreated;
|
private $wasCreated;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class DiffusionPathChangeQuery {
|
final class DiffusionPathChangeQuery extends Phobject {
|
||||||
|
|
||||||
private $request;
|
private $request;
|
||||||
private $limit;
|
private $limit;
|
||||||
|
|
|
@ -3,7 +3,9 @@
|
||||||
/**
|
/**
|
||||||
* @task pathutil Path Utilities
|
* @task pathutil Path Utilities
|
||||||
*/
|
*/
|
||||||
final class DiffusionPathIDQuery {
|
final class DiffusionPathIDQuery extends Phobject {
|
||||||
|
|
||||||
|
private $paths = array();
|
||||||
|
|
||||||
public function __construct(array $paths) {
|
public function __construct(array $paths) {
|
||||||
$this->paths = $paths;
|
$this->paths = $paths;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
* @task new Creating Requests
|
* @task new Creating Requests
|
||||||
* @task uri Managing Diffusion URIs
|
* @task uri Managing Diffusion URIs
|
||||||
*/
|
*/
|
||||||
abstract class DiffusionRequest {
|
abstract class DiffusionRequest extends Phobject {
|
||||||
|
|
||||||
protected $callsign;
|
protected $callsign;
|
||||||
protected $path;
|
protected $path;
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
* This protocol has a good spec here:
|
* This protocol has a good spec here:
|
||||||
*
|
*
|
||||||
* http://svn.apache.org/repos/asf/subversion/trunk/subversion/libsvn_ra_svn/protocol
|
* http://svn.apache.org/repos/asf/subversion/trunk/subversion/libsvn_ra_svn/protocol
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
final class DiffusionSubversionServeSSHWorkflow
|
final class DiffusionSubversionServeSSHWorkflow
|
||||||
extends DiffusionSubversionSSHWorkflow {
|
extends DiffusionSubversionSSHWorkflow {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class DiffusionExternalSymbolQuery {
|
final class DiffusionExternalSymbolQuery extends Phobject {
|
||||||
private $languages = array();
|
private $languages = array();
|
||||||
private $types = array();
|
private $types = array();
|
||||||
private $names = array();
|
private $names = array();
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
abstract class DiffusionExternalSymbolsSource {
|
abstract class DiffusionExternalSymbolsSource extends Phobject {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return list of PhabricatorRepositorySymbol
|
* @return list of PhabricatorRepositorySymbol
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class DivinerAtom {
|
final class DivinerAtom extends Phobject {
|
||||||
|
|
||||||
const TYPE_ARTICLE = 'article';
|
const TYPE_ARTICLE = 'article';
|
||||||
const TYPE_CLASS = 'class';
|
const TYPE_CLASS = 'class';
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue