Page MenuHomePhabricator

D7408.diff
No OneTemporary

D7408.diff

Index: src/__phutil_library_map__.php
===================================================================
--- src/__phutil_library_map__.php
+++ src/__phutil_library_map__.php
@@ -1485,6 +1485,7 @@
'PhabricatorPHDConfigOptions' => 'applications/config/option/PhabricatorPHDConfigOptions.php',
'PhabricatorPHID' => 'applications/phid/storage/PhabricatorPHID.php',
'PhabricatorPHIDConstants' => 'applications/phid/PhabricatorPHIDConstants.php',
+ 'PhabricatorPHIDInterface' => 'applications/phid/interface/PhabricatorPHIDInterface.php',
'PhabricatorPHIDType' => 'applications/phid/type/PhabricatorPHIDType.php',
'PhabricatorPHPMailerConfigOptions' => 'applications/config/option/PhabricatorPHPMailerConfigOptions.php',
'PhabricatorPagedFormExample' => 'applications/uiexample/examples/PhabricatorPagedFormExample.php',
@@ -3594,6 +3595,7 @@
'PhabricatorFlagQuery' => 'PhabricatorCursorPagedPolicyAwareQuery',
'PhabricatorFlagSearchEngine' => 'PhabricatorApplicationSearchEngine',
'PhabricatorFlagSelectControl' => 'AphrontFormControl',
+ 'PhabricatorFlaggableInterface' => 'PhabricatorPHIDInterface',
'PhabricatorFlagsUIEventListener' => 'PhabricatorEventListener',
'PhabricatorFormExample' => 'PhabricatorUIExample',
'PhabricatorGarbageCollectorConfigOptions' => 'PhabricatorApplicationConfigOptions',
@@ -3844,6 +3846,7 @@
'PhabricatorPolicyEditController' => 'PhabricatorPolicyController',
'PhabricatorPolicyException' => 'Exception',
'PhabricatorPolicyExplainController' => 'PhabricatorPolicyController',
+ 'PhabricatorPolicyInterface' => 'PhabricatorPHIDInterface',
'PhabricatorPolicyManagementShowWorkflow' => 'PhabricatorPolicyManagementWorkflow',
'PhabricatorPolicyManagementUnlockWorkflow' => 'PhabricatorPolicyManagementWorkflow',
'PhabricatorPolicyManagementWorkflow' => 'PhutilArgumentWorkflow',
Index: src/applications/flag/interface/PhabricatorFlaggableInterface.php
===================================================================
--- src/applications/flag/interface/PhabricatorFlaggableInterface.php
+++ src/applications/flag/interface/PhabricatorFlaggableInterface.php
@@ -1,7 +1,5 @@
<?php
-interface PhabricatorFlaggableInterface {
-
- public function getPHID();
+interface PhabricatorFlaggableInterface extends PhabricatorPHIDInterface {
}
Index: src/applications/phid/interface/PhabricatorPHIDInterface.php
===================================================================
--- /dev/null
+++ src/applications/phid/interface/PhabricatorPHIDInterface.php
@@ -0,0 +1,7 @@
+<?php
+
+interface PhabricatorPHIDInterface {
+
+ public function getPHID();
+
+}
Index: src/applications/policy/interface/PhabricatorPolicyInterface.php
===================================================================
--- src/applications/policy/interface/PhabricatorPolicyInterface.php
+++ src/applications/policy/interface/PhabricatorPolicyInterface.php
@@ -1,8 +1,7 @@
<?php
-interface PhabricatorPolicyInterface {
+interface PhabricatorPolicyInterface extends PhabricatorPHIDInterface {
- public function getPHID();
public function getCapabilities();
public function getPolicy($capability);
public function hasAutomaticCapability($capability, PhabricatorUser $viewer);

File Metadata

Mime Type
text/plain
Expires
Fri, Oct 4, 5:20 PM (21 h, 51 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6670878
Default Alt Text
D7408.diff (3 KB)

Event Timeline