1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-20 20:40:56 +01:00

Add "final" to all Phabricator "Controller" classes

Summary:
These are all unambiguously unextensible. Issues I hit:

  - Maniphest Change/Diff controllers, just consolidated them.
  - Some search controllers incorrectly extend from "Search" but should extend from "SearchBase". This has no runtime effects.
  - D1836 introduced a closure, which we don't handle correctly (somewhat on purpose; we target PHP 5.2). See T962.

Test Plan: Ran "testEverythingImplemented" unit test to identify classes extending from `final` classes. Resolved issues.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran, epriestley

Maniphest Tasks: T795

Differential Revision: https://secure.phabricator.com/D1843
This commit is contained in:
epriestley 2012-03-09 15:46:25 -08:00
parent 1bff43a0c3
commit b2890eeb0e
158 changed files with 276 additions and 273 deletions

View file

@ -422,7 +422,6 @@ phutil_register_library_map(array(
'ManiphestTask' => 'applications/maniphest/storage/task', 'ManiphestTask' => 'applications/maniphest/storage/task',
'ManiphestTaskAuxiliaryStorage' => 'applications/maniphest/storage/auxiliary', 'ManiphestTaskAuxiliaryStorage' => 'applications/maniphest/storage/auxiliary',
'ManiphestTaskDescriptionChangeController' => 'applications/maniphest/controller/descriptionchange', 'ManiphestTaskDescriptionChangeController' => 'applications/maniphest/controller/descriptionchange',
'ManiphestTaskDescriptionDiffController' => 'applications/maniphest/controller/descriptiondiff',
'ManiphestTaskDescriptionPreviewController' => 'applications/maniphest/controller/descriptionpreview', 'ManiphestTaskDescriptionPreviewController' => 'applications/maniphest/controller/descriptionpreview',
'ManiphestTaskDetailController' => 'applications/maniphest/controller/taskdetail', 'ManiphestTaskDetailController' => 'applications/maniphest/controller/taskdetail',
'ManiphestTaskEditController' => 'applications/maniphest/controller/taskedit', 'ManiphestTaskEditController' => 'applications/maniphest/controller/taskedit',
@ -1232,7 +1231,6 @@ phutil_register_library_map(array(
'ManiphestTask' => 'ManiphestDAO', 'ManiphestTask' => 'ManiphestDAO',
'ManiphestTaskAuxiliaryStorage' => 'ManiphestDAO', 'ManiphestTaskAuxiliaryStorage' => 'ManiphestDAO',
'ManiphestTaskDescriptionChangeController' => 'ManiphestController', 'ManiphestTaskDescriptionChangeController' => 'ManiphestController',
'ManiphestTaskDescriptionDiffController' => 'ManiphestTaskDescriptionChangeController',
'ManiphestTaskDescriptionPreviewController' => 'ManiphestController', 'ManiphestTaskDescriptionPreviewController' => 'ManiphestController',
'ManiphestTaskDetailController' => 'ManiphestController', 'ManiphestTaskDetailController' => 'ManiphestController',
'ManiphestTaskEditController' => 'ManiphestController', 'ManiphestTaskEditController' => 'ManiphestController',
@ -1522,7 +1520,7 @@ phutil_register_library_map(array(
'PhabricatorRepositorySymbol' => 'PhabricatorRepositoryDAO', 'PhabricatorRepositorySymbol' => 'PhabricatorRepositoryDAO',
'PhabricatorRepositoryTestCase' => 'PhabricatorTestCase', 'PhabricatorRepositoryTestCase' => 'PhabricatorTestCase',
'PhabricatorS3FileStorageEngine' => 'PhabricatorFileStorageEngine', 'PhabricatorS3FileStorageEngine' => 'PhabricatorFileStorageEngine',
'PhabricatorSearchAttachController' => 'PhabricatorSearchController', 'PhabricatorSearchAttachController' => 'PhabricatorSearchBaseController',
'PhabricatorSearchBaseController' => 'PhabricatorController', 'PhabricatorSearchBaseController' => 'PhabricatorController',
'PhabricatorSearchCommitIndexer' => 'PhabricatorSearchDocumentIndexer', 'PhabricatorSearchCommitIndexer' => 'PhabricatorSearchDocumentIndexer',
'PhabricatorSearchController' => 'PhabricatorSearchBaseController', 'PhabricatorSearchController' => 'PhabricatorSearchBaseController',
@ -1537,7 +1535,7 @@ phutil_register_library_map(array(
'PhabricatorSearchPhrictionIndexer' => 'PhabricatorSearchDocumentIndexer', 'PhabricatorSearchPhrictionIndexer' => 'PhabricatorSearchDocumentIndexer',
'PhabricatorSearchQuery' => 'PhabricatorSearchDAO', 'PhabricatorSearchQuery' => 'PhabricatorSearchDAO',
'PhabricatorSearchResultView' => 'AphrontView', 'PhabricatorSearchResultView' => 'AphrontView',
'PhabricatorSearchSelectController' => 'PhabricatorSearchController', 'PhabricatorSearchSelectController' => 'PhabricatorSearchBaseController',
'PhabricatorSearchUserIndexer' => 'PhabricatorSearchDocumentIndexer', 'PhabricatorSearchUserIndexer' => 'PhabricatorSearchDocumentIndexer',
'PhabricatorSlowvoteChoice' => 'PhabricatorSlowvoteDAO', 'PhabricatorSlowvoteChoice' => 'PhabricatorSlowvoteDAO',
'PhabricatorSlowvoteComment' => 'PhabricatorSlowvoteDAO', 'PhabricatorSlowvoteComment' => 'PhabricatorSlowvoteDAO',

View file

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright 2011 Facebook, Inc. * Copyright 2012 Facebook, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -19,7 +19,7 @@
/** /**
* @group console * @group console
*/ */
class DarkConsoleController extends PhabricatorController { final class DarkConsoleController extends PhabricatorController {
protected $op; protected $op;
protected $data; protected $data;

View file

@ -196,10 +196,8 @@ class AphrontDefaultApplicationConfiguration
'task/' => array( 'task/' => array(
'create/' => 'ManiphestTaskEditController', 'create/' => 'ManiphestTaskEditController',
'edit/(?P<id>\d+)/' => 'ManiphestTaskEditController', 'edit/(?P<id>\d+)/' => 'ManiphestTaskEditController',
'descriptionchange/(?P<id>\d+)/' => 'descriptionchange/(?:(?P<id>\d+)/)?' =>
'ManiphestTaskDescriptionChangeController', 'ManiphestTaskDescriptionChangeController',
'descriptiondiff/' =>
'ManiphestTaskDescriptionDiffController',
'descriptionpreview/' => 'descriptionpreview/' =>
'ManiphestTaskDescriptionPreviewController', 'ManiphestTaskDescriptionPreviewController',
), ),

View file

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright 2011 Facebook, Inc. * Copyright 2012 Facebook, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -16,7 +16,8 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorDisabledUserController extends PhabricatorAuthController { final class PhabricatorDisabledUserController
extends PhabricatorAuthController {
public function shouldRequireEnabledUser() { public function shouldRequireEnabledUser() {
return false; return false;

View file

@ -16,7 +16,8 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorEmailLoginController extends PhabricatorAuthController { final class PhabricatorEmailLoginController
extends PhabricatorAuthController {
public function shouldRequireLogin() { public function shouldRequireLogin() {
return false; return false;

View file

@ -16,7 +16,8 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorEmailTokenController extends PhabricatorAuthController { final class PhabricatorEmailTokenController
extends PhabricatorAuthController {
private $token; private $token;

View file

@ -16,7 +16,8 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorLoginController extends PhabricatorAuthController { final class PhabricatorLoginController
extends PhabricatorAuthController {
public function shouldRequireLogin() { public function shouldRequireLogin() {
return false; return false;

View file

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright 2011 Facebook, Inc. * Copyright 2012 Facebook, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -16,7 +16,8 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorLogoutController extends PhabricatorAuthController { final class PhabricatorLogoutController
extends PhabricatorAuthController {
public function shouldRequireLogin() { public function shouldRequireLogin() {
return true; return true;

View file

@ -16,7 +16,8 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorOAuthLoginController extends PhabricatorAuthController { final class PhabricatorOAuthLoginController
extends PhabricatorAuthController {
private $provider; private $provider;
private $userID; private $userID;

View file

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorOAuthDiagnosticsController final class PhabricatorOAuthDiagnosticsController
extends PhabricatorAuthController { extends PhabricatorAuthController {
public function shouldRequireLogin() { public function shouldRequireLogin() {

View file

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorOAuthDefaultRegistrationController final class PhabricatorOAuthDefaultRegistrationController
extends PhabricatorOAuthRegistrationController { extends PhabricatorOAuthRegistrationController {
public function processRequest() { public function processRequest() {

View file

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright 2011 Facebook, Inc. * Copyright 2012 Facebook, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorRefreshCSRFController extends PhabricatorAuthController { final class PhabricatorRefreshCSRFController extends PhabricatorAuthController {
public function processRequest() { public function processRequest() {
$request = $this->getRequest(); $request = $this->getRequest();

View file

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorOAuthUnlinkController extends PhabricatorAuthController { final class PhabricatorOAuthUnlinkController extends PhabricatorAuthController {
private $provider; private $provider;

View file

@ -16,7 +16,8 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorLoginValidateController extends PhabricatorAuthController { final class PhabricatorLoginValidateController
extends PhabricatorAuthController {
public function shouldRequireLogin() { public function shouldRequireLogin() {
return false; return false;

View file

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright 2011 Facebook, Inc. * Copyright 2012 Facebook, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class Phabricator404Controller extends PhabricatorController { final class Phabricator404Controller extends PhabricatorController {
public function processRequest() { public function processRequest() {
return new Aphront404Response(); return new Aphront404Response();

View file

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright 2011 Facebook, Inc. * Copyright 2012 Facebook, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorRedirectController extends PhabricatorController { final class PhabricatorRedirectController extends PhabricatorController {
private $uri; private $uri;

View file

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright 2011 Facebook, Inc. * Copyright 2012 Facebook, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorCalendarBrowseController final class PhabricatorCalendarBrowseController
extends PhabricatorCalendarController { extends PhabricatorCalendarController {
public function processRequest() { public function processRequest() {

View file

@ -19,7 +19,7 @@
/** /**
* @group conduit * @group conduit
*/ */
class PhabricatorConduitAPIController final class PhabricatorConduitAPIController
extends PhabricatorConduitController { extends PhabricatorConduitController {
public function shouldRequireLogin() { public function shouldRequireLogin() {

View file

@ -19,7 +19,7 @@
/** /**
* @group conduit * @group conduit
*/ */
class PhabricatorConduitConsoleController final class PhabricatorConduitConsoleController
extends PhabricatorConduitController { extends PhabricatorConduitController {
private $method; private $method;

View file

@ -19,7 +19,8 @@
/** /**
* @group conduit * @group conduit
*/ */
class PhabricatorConduitLogController extends PhabricatorConduitController { final class PhabricatorConduitLogController
extends PhabricatorConduitController {
public function processRequest() { public function processRequest() {
$request = $this->getRequest(); $request = $this->getRequest();

View file

@ -19,7 +19,8 @@
/** /**
* @group conduit * @group conduit
*/ */
class PhabricatorConduitTokenController extends PhabricatorConduitController { final class PhabricatorConduitTokenController
extends PhabricatorConduitController {
public function processRequest() { public function processRequest() {

View file

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorCountdownDeleteController final class PhabricatorCountdownDeleteController
extends PhabricatorCountdownController { extends PhabricatorCountdownController {
public function willProcessRequest(array $data) { public function willProcessRequest(array $data) {

View file

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorCountdownEditController final class PhabricatorCountdownEditController
extends PhabricatorCountdownController { extends PhabricatorCountdownController {
private $id; private $id;

View file

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright 2011 Facebook, Inc. * Copyright 2012 Facebook, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorCountdownListController final class PhabricatorCountdownListController
extends PhabricatorCountdownController { extends PhabricatorCountdownController {
public function processRequest() { public function processRequest() {

View file

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorCountdownViewController final class PhabricatorCountdownViewController
extends PhabricatorCountdownController { extends PhabricatorCountdownController {
private $id; private $id;

View file

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright 2011 Facebook, Inc. * Copyright 2012 Facebook, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorDaemonCombinedLogController final class PhabricatorDaemonCombinedLogController
extends PhabricatorDaemonController { extends PhabricatorDaemonController {

View file

@ -16,7 +16,8 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorDaemonConsoleController extends PhabricatorDaemonController { final class PhabricatorDaemonConsoleController
extends PhabricatorDaemonController {
public function processRequest() { public function processRequest() {
$logs = id(new PhabricatorDaemonLog())->loadAllWhere( $logs = id(new PhabricatorDaemonLog())->loadAllWhere(

View file

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright 2011 Facebook, Inc. * Copyright 2012 Facebook, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -16,7 +16,8 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorDaemonLogListController extends PhabricatorDaemonController { final class PhabricatorDaemonLogListController
extends PhabricatorDaemonController {
public function processRequest() { public function processRequest() {
$request = $this->getRequest(); $request = $this->getRequest();

View file

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright 2011 Facebook, Inc. * Copyright 2012 Facebook, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -16,7 +16,8 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorDaemonLogViewController extends PhabricatorDaemonController { final class PhabricatorDaemonLogViewController
extends PhabricatorDaemonController {
private $id; private $id;

View file

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright 2011 Facebook, Inc. * Copyright 2012 Facebook, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorDaemonTimelineConsoleController final class PhabricatorDaemonTimelineConsoleController
extends PhabricatorDaemonController { extends PhabricatorDaemonController {
public function processRequest() { public function processRequest() {

View file

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright 2011 Facebook, Inc. * Copyright 2012 Facebook, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorDaemonTimelineEventController final class PhabricatorDaemonTimelineEventController
extends PhabricatorDaemonController { extends PhabricatorDaemonController {
private $id; private $id;

View file

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorWorkerTaskDetailController final class PhabricatorWorkerTaskDetailController
extends PhabricatorDaemonController { extends PhabricatorDaemonController {
private $id; private $id;

View file

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorWorkerTaskUpdateController final class PhabricatorWorkerTaskUpdateController
extends PhabricatorDaemonController { extends PhabricatorDaemonController {
private $id; private $id;

View file

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class DifferentialChangesetViewController extends DifferentialController { final class DifferentialChangesetViewController extends DifferentialController {
public function shouldRequireLogin() { public function shouldRequireLogin() {

View file

@ -16,7 +16,8 @@
* limitations under the License. * limitations under the License.
*/ */
class DifferentialCommentPreviewController extends DifferentialController { final class DifferentialCommentPreviewController
extends DifferentialController {
private $id; private $id;

View file

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class DifferentialCommentSaveController extends DifferentialController { final class DifferentialCommentSaveController extends DifferentialController {
public function processRequest() { public function processRequest() {
$request = $this->getRequest(); $request = $this->getRequest();

View file

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright 2011 Facebook, Inc. * Copyright 2012 Facebook, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class DifferentialDiffCreateController extends DifferentialController { final class DifferentialDiffCreateController extends DifferentialController {
public function processRequest() { public function processRequest() {

View file

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class DifferentialDiffViewController extends DifferentialController { final class DifferentialDiffViewController extends DifferentialController {
private $id; private $id;

View file

@ -16,7 +16,8 @@
* limitations under the License. * limitations under the License.
*/ */
class DifferentialInlineCommentEditController extends DifferentialController { final class DifferentialInlineCommentEditController
extends DifferentialController {
private $revisionID; private $revisionID;

View file

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright 2011 Facebook, Inc. * Copyright 2012 Facebook, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class DifferentialInlineCommentPreviewController final class DifferentialInlineCommentPreviewController
extends DifferentialController { extends DifferentialController {
private $revisionID; private $revisionID;

View file

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright 2011 Facebook, Inc. * Copyright 2012 Facebook, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class DifferentialRevisionEditController extends DifferentialController { final class DifferentialRevisionEditController extends DifferentialController {
private $id; private $id;

View file

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class DifferentialRevisionListController extends DifferentialController { final class DifferentialRevisionListController extends DifferentialController {
private $filter; private $filter;
private $username; private $username;

View file

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class DifferentialRevisionStatsController extends DifferentialController { final class DifferentialRevisionStatsController extends DifferentialController {
private $filter; private $filter;
public function shouldRequireLogin() { public function shouldRequireLogin() {

View file

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class DifferentialRevisionViewController extends DifferentialController { final class DifferentialRevisionViewController extends DifferentialController {
private $revisionID; private $revisionID;

View file

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright 2011 Facebook, Inc. * Copyright 2012 Facebook, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class DifferentialSubscribeController extends DifferentialController { final class DifferentialSubscribeController extends DifferentialController {
private $id; private $id;
private $action; private $action;

View file

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class DiffusionBrowseController extends DiffusionController { final class DiffusionBrowseController extends DiffusionController {
public function processRequest() { public function processRequest() {
$drequest = $this->diffusionRequest; $drequest = $this->diffusionRequest;

View file

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class DiffusionChangeController extends DiffusionController { final class DiffusionChangeController extends DiffusionController {
public function processRequest() { public function processRequest() {
$drequest = $this->diffusionRequest; $drequest = $this->diffusionRequest;

View file

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class DiffusionCommitController extends DiffusionController { final class DiffusionCommitController extends DiffusionController {
const CHANGES_LIMIT = 100; const CHANGES_LIMIT = 100;

View file

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright 2011 Facebook, Inc. * Copyright 2012 Facebook, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class DiffusionDiffController extends DiffusionController { final class DiffusionDiffController extends DiffusionController {
public function willProcessRequest(array $data) { public function willProcessRequest(array $data) {
$request = $this->getRequest(); $request = $this->getRequest();

View file

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class DiffusionBrowseFileController extends DiffusionController { final class DiffusionBrowseFileController extends DiffusionController {
// Image types we want to display inline using <img> tags // Image types we want to display inline using <img> tags
protected $imageTypes = array( protected $imageTypes = array(

View file

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class DiffusionHistoryController extends DiffusionController { final class DiffusionHistoryController extends DiffusionController {
public function processRequest() { public function processRequest() {
$drequest = $this->diffusionRequest; $drequest = $this->diffusionRequest;

View file

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright 2011 Facebook, Inc. * Copyright 2012 Facebook, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class DiffusionHomeController extends DiffusionController { final class DiffusionHomeController extends DiffusionController {
public function processRequest() { public function processRequest() {
$request = $this->getRequest(); $request = $this->getRequest();

View file

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright 2011 Facebook, Inc. * Copyright 2012 Facebook, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class DiffusionLastModifiedController extends DiffusionController { final class DiffusionLastModifiedController extends DiffusionController {
public function processRequest() { public function processRequest() {
$drequest = $this->getDiffusionRequest(); $drequest = $this->getDiffusionRequest();

View file

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright 2011 Facebook, Inc. * Copyright 2012 Facebook, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class DiffusionPathCompleteController extends DiffusionController { final class DiffusionPathCompleteController extends DiffusionController {
public function willProcessRequest(array $data) { public function willProcessRequest(array $data) {
// Don't build a DiffusionRequest. // Don't build a DiffusionRequest.

View file

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright 2011 Facebook, Inc. * Copyright 2012 Facebook, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class DiffusionPathValidateController extends DiffusionController { final class DiffusionPathValidateController extends DiffusionController {
public function willProcessRequest(array $data) { public function willProcessRequest(array $data) {
// Don't build a DiffusionRequest. // Don't build a DiffusionRequest.

View file

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class DiffusionRepositoryController extends DiffusionController { final class DiffusionRepositoryController extends DiffusionController {
public function processRequest() { public function processRequest() {
$drequest = $this->diffusionRequest; $drequest = $this->diffusionRequest;

View file

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright 2011 Facebook, Inc. * Copyright 2012 Facebook, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class DiffusionSymbolController extends DiffusionController { final class DiffusionSymbolController extends DiffusionController {
private $name; private $name;

View file

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorDirectoryCategoryDeleteController final class PhabricatorDirectoryCategoryDeleteController
extends PhabricatorDirectoryController { extends PhabricatorDirectoryController {
public function willProcessRequest(array $data) { public function willProcessRequest(array $data) {

View file

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorDirectoryCategoryEditController final class PhabricatorDirectoryCategoryEditController
extends PhabricatorDirectoryController { extends PhabricatorDirectoryController {
private $id; private $id;

View file

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorDirectoryItemDeleteController final class PhabricatorDirectoryItemDeleteController
extends PhabricatorDirectoryController { extends PhabricatorDirectoryController {
public function willProcessRequest(array $data) { public function willProcessRequest(array $data) {

View file

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorDirectoryItemEditController final class PhabricatorDirectoryItemEditController
extends PhabricatorDirectoryController { extends PhabricatorDirectoryController {
private $id; private $id;

View file

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorDirectoryMainController final class PhabricatorDirectoryMainController
extends PhabricatorDirectoryController { extends PhabricatorDirectoryController {
private $filter; private $filter;

View file

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorFileDeleteController extends PhabricatorFileController { final class PhabricatorFileDeleteController extends PhabricatorFileController {
private $id; private $id;

View file

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright 2011 Facebook, Inc. * Copyright 2012 Facebook, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -16,7 +16,8 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorFileDropUploadController extends PhabricatorFileController { final class PhabricatorFileDropUploadController
extends PhabricatorFileController {
public function processRequest() { public function processRequest() {
$request = $this->getRequest(); $request = $this->getRequest();

View file

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorFileListController extends PhabricatorFileController { final class PhabricatorFileListController extends PhabricatorFileController {
private $filter; private $filter;
private $showUploader; private $showUploader;

View file

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright 2011 Facebook, Inc. * Copyright 2012 Facebook, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -16,7 +16,8 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorFileMacroDeleteController extends PhabricatorFileController { final class PhabricatorFileMacroDeleteController
extends PhabricatorFileController {
private $id; private $id;

View file

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright 2011 Facebook, Inc. * Copyright 2012 Facebook, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -16,7 +16,8 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorFileMacroEditController extends PhabricatorFileController { final class PhabricatorFileMacroEditController
extends PhabricatorFileController {
private $id; private $id;

View file

@ -16,7 +16,9 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorFileMacroListController extends PhabricatorFileController { final class PhabricatorFileMacroListController
extends PhabricatorFileController {
public function processRequest() { public function processRequest() {
$request = $this->getRequest(); $request = $this->getRequest();

View file

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorFileProxyController extends PhabricatorFileController { final class PhabricatorFileProxyController extends PhabricatorFileController {
private $uri; private $uri;

View file

@ -16,7 +16,8 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorFileTransformController extends PhabricatorFileController { final class PhabricatorFileTransformController
extends PhabricatorFileController {
private $transform; private $transform;
private $phid; private $phid;

View file

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright 2011 Facebook, Inc. * Copyright 2012 Facebook, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorFileUploadController extends PhabricatorFileController { final class PhabricatorFileUploadController extends PhabricatorFileController {
public function processRequest() { public function processRequest() {

View file

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright 2011 Facebook, Inc. * Copyright 2012 Facebook, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorHelpKeyboardShortcutController final class PhabricatorHelpKeyboardShortcutController
extends PhabricatorHelpController { extends PhabricatorHelpController {
public function processRequest() { public function processRequest() {

View file

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class HeraldAllRulesController extends HeraldController { final class HeraldAllRulesController extends HeraldController {
private $view; private $view;
private $viewPHID; private $viewPHID;

View file

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright 2011 Facebook, Inc. * Copyright 2012 Facebook, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class HeraldDeleteController extends HeraldController { final class HeraldDeleteController extends HeraldController {
private $id; private $id;

View file

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class HeraldRuleEditHistoryController extends HeraldController { final class HeraldRuleEditHistoryController extends HeraldController {
private $id; private $id;

View file

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class HeraldHomeController extends HeraldController { final class HeraldHomeController extends HeraldController {
private $view; private $view;
private $filter; private $filter;

View file

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class HeraldNewController extends HeraldController { final class HeraldNewController extends HeraldController {
private $contentType; private $contentType;

View file

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class HeraldRuleController extends HeraldController { final class HeraldRuleController extends HeraldController {
private $id; private $id;
private $filter; private $filter;

View file

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class HeraldTestConsoleController extends HeraldController { final class HeraldTestConsoleController extends HeraldController {
public function getFilter() { public function getFilter() {
return 'test'; return 'test';

View file

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class HeraldTranscriptController extends HeraldController { final class HeraldTranscriptController extends HeraldController {
const FILTER_AFFECTED = 'affected'; const FILTER_AFFECTED = 'affected';
const FILTER_OWNED = 'owned'; const FILTER_OWNED = 'owned';

View file

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright 2011 Facebook, Inc. * Copyright 2012 Facebook, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class HeraldTranscriptListController extends HeraldController { final class HeraldTranscriptListController extends HeraldController {
public function getFilter() { public function getFilter() {
return 'transcript'; return 'transcript';

View file

@ -19,7 +19,8 @@
/** /**
* @group maniphest * @group maniphest
*/ */
class ManiphestTaskDescriptionChangeController extends ManiphestController { final class ManiphestTaskDescriptionChangeController
extends ManiphestController {
private $transactionID; private $transactionID;
@ -33,13 +34,17 @@ class ManiphestTaskDescriptionChangeController extends ManiphestController {
} }
public function willProcessRequest(array $data) { public function willProcessRequest(array $data) {
$this->setTransactionID($data['id']); $this->setTransactionID(idx($data, 'id'));
} }
public function processRequest() { public function processRequest() {
$request = $this->getRequest(); $request = $this->getRequest();
$user = $request->getUser(); $user = $request->getUser();
if (!$this->getTransactionID()) {
$this->setTransactionID($this->getRequest()->getStr('ref'));
}
$transaction_id = $this->getTransactionID(); $transaction_id = $this->getTransactionID();
$transaction = id(new ManiphestTransaction())->load($transaction_id); $transaction = id(new ManiphestTransaction())->load($transaction_id);
if (!$transaction) { if (!$transaction) {

View file

@ -1,29 +0,0 @@
<?php
/*
* Copyright 2012 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @group maniphest
*/
final class ManiphestTaskDescriptionDiffController
extends ManiphestTaskDescriptionChangeController {
public function willProcessRequest(array $data) {
$ref = $this->getRequest()->getStr('ref');
$this->setTransactionID($ref);
}
}

View file

@ -1,12 +0,0 @@
<?php
/**
* This file is automatically generated. Lint this module to rebuild it.
* @generated
*/
phutil_require_module('phabricator', 'applications/maniphest/controller/descriptionchange');
phutil_require_source('ManiphestTaskDescriptionDiffController.php');

View file

@ -19,7 +19,8 @@
/** /**
* @group maniphest * @group maniphest
*/ */
class ManiphestTaskDescriptionPreviewController extends ManiphestController { final class ManiphestTaskDescriptionPreviewController
extends ManiphestController {
public function processRequest() { public function processRequest() {

View file

@ -19,7 +19,7 @@
/** /**
* @group maniphest * @group maniphest
*/ */
class ManiphestTaskDetailController extends ManiphestController { final class ManiphestTaskDetailController extends ManiphestController {
private $id; private $id;

View file

@ -19,7 +19,7 @@
/** /**
* @group maniphest * @group maniphest
*/ */
class ManiphestTaskEditController extends ManiphestController { final class ManiphestTaskEditController extends ManiphestController {
private $id; private $id;

View file

@ -19,7 +19,7 @@
/** /**
* @group maniphest * @group maniphest
*/ */
class ManiphestTaskListController extends ManiphestController { final class ManiphestTaskListController extends ManiphestController {
const DEFAULT_PAGE_SIZE = 1000; const DEFAULT_PAGE_SIZE = 1000;

View file

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright 2011 Facebook, Inc. * Copyright 2012 Facebook, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -19,7 +19,7 @@
/** /**
* @group maniphest * @group maniphest
*/ */
class ManiphestTransactionPreviewController extends ManiphestController { final class ManiphestTransactionPreviewController extends ManiphestController {
private $id; private $id;

View file

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright 2011 Facebook, Inc. * Copyright 2012 Facebook, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -19,7 +19,7 @@
/** /**
* @group maniphest * @group maniphest
*/ */
class ManiphestTransactionSaveController extends ManiphestController { final class ManiphestTransactionSaveController extends ManiphestController {
public function processRequest() { public function processRequest() {
$request = $this->getRequest(); $request = $this->getRequest();

View file

@ -96,7 +96,7 @@ class ManiphestTransactionListView extends ManiphestView {
require_celerity_resource('syntax-highlighting-css'); require_celerity_resource('syntax-highlighting-css');
$whitespace_mode = DifferentialChangesetParser::WHITESPACE_SHOW_ALL; $whitespace_mode = DifferentialChangesetParser::WHITESPACE_SHOW_ALL;
Javelin::initBehavior('differential-show-more', array( Javelin::initBehavior('differential-show-more', array(
'uri' => '/maniphest/task/descriptiondiff/', 'uri' => '/maniphest/task/descriptionchange/',
'whitespace' => $whitespace_mode, 'whitespace' => $whitespace_mode,
)); ));
} }

View file

@ -16,7 +16,8 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorMetaMTAListController extends PhabricatorMetaMTAController { final class PhabricatorMetaMTAListController
extends PhabricatorMetaMTAController {
public function processRequest() { public function processRequest() {
// Get a page of mails together with pager. // Get a page of mails together with pager.

View file

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorMetaMTAMailingListEditController final class PhabricatorMetaMTAMailingListEditController
extends PhabricatorMetaMTAController { extends PhabricatorMetaMTAController {
private $id; private $id;

View file

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorMetaMTAMailingListsController final class PhabricatorMetaMTAMailingListsController
extends PhabricatorMetaMTAController { extends PhabricatorMetaMTAController {
public function processRequest() { public function processRequest() {

View file

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright 2011 Facebook, Inc. * Copyright 2012 Facebook, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorMetaMTAReceiveController final class PhabricatorMetaMTAReceiveController
extends PhabricatorMetaMTAController { extends PhabricatorMetaMTAController {
public function processRequest() { public function processRequest() {

View file

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright 2011 Facebook, Inc. * Copyright 2012 Facebook, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorMetaMTAReceivedListController final class PhabricatorMetaMTAReceivedListController
extends PhabricatorMetaMTAController { extends PhabricatorMetaMTAController {
public function processRequest() { public function processRequest() {

View file

@ -16,7 +16,8 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorMetaMTASendController extends PhabricatorMetaMTAController { final class PhabricatorMetaMTASendController
extends PhabricatorMetaMTAController {
public function processRequest() { public function processRequest() {

View file

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorMetaMTASendGridReceiveController final class PhabricatorMetaMTASendGridReceiveController
extends PhabricatorMetaMTAController { extends PhabricatorMetaMTAController {
public function shouldRequireLogin() { public function shouldRequireLogin() {

View file

@ -16,7 +16,8 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorMetaMTAViewController extends PhabricatorMetaMTAController { final class PhabricatorMetaMTAViewController
extends PhabricatorMetaMTAController {
private $id; private $id;

View file

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright 2011 Facebook, Inc. * Copyright 2012 Facebook, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -16,7 +16,8 @@
* limitations under the License. * limitations under the License.
*/ */
class PhabricatorOwnersDeleteController extends PhabricatorOwnersController { final class PhabricatorOwnersDeleteController
extends PhabricatorOwnersController {
private $id; private $id;

Some files were not shown because too many files have changed in this diff Show more