1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-30 01:10:58 +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',
'ManiphestTaskAuxiliaryStorage' => 'applications/maniphest/storage/auxiliary',
'ManiphestTaskDescriptionChangeController' => 'applications/maniphest/controller/descriptionchange',
'ManiphestTaskDescriptionDiffController' => 'applications/maniphest/controller/descriptiondiff',
'ManiphestTaskDescriptionPreviewController' => 'applications/maniphest/controller/descriptionpreview',
'ManiphestTaskDetailController' => 'applications/maniphest/controller/taskdetail',
'ManiphestTaskEditController' => 'applications/maniphest/controller/taskedit',
@ -1232,7 +1231,6 @@ phutil_register_library_map(array(
'ManiphestTask' => 'ManiphestDAO',
'ManiphestTaskAuxiliaryStorage' => 'ManiphestDAO',
'ManiphestTaskDescriptionChangeController' => 'ManiphestController',
'ManiphestTaskDescriptionDiffController' => 'ManiphestTaskDescriptionChangeController',
'ManiphestTaskDescriptionPreviewController' => 'ManiphestController',
'ManiphestTaskDetailController' => 'ManiphestController',
'ManiphestTaskEditController' => 'ManiphestController',
@ -1522,7 +1520,7 @@ phutil_register_library_map(array(
'PhabricatorRepositorySymbol' => 'PhabricatorRepositoryDAO',
'PhabricatorRepositoryTestCase' => 'PhabricatorTestCase',
'PhabricatorS3FileStorageEngine' => 'PhabricatorFileStorageEngine',
'PhabricatorSearchAttachController' => 'PhabricatorSearchController',
'PhabricatorSearchAttachController' => 'PhabricatorSearchBaseController',
'PhabricatorSearchBaseController' => 'PhabricatorController',
'PhabricatorSearchCommitIndexer' => 'PhabricatorSearchDocumentIndexer',
'PhabricatorSearchController' => 'PhabricatorSearchBaseController',
@ -1537,7 +1535,7 @@ phutil_register_library_map(array(
'PhabricatorSearchPhrictionIndexer' => 'PhabricatorSearchDocumentIndexer',
'PhabricatorSearchQuery' => 'PhabricatorSearchDAO',
'PhabricatorSearchResultView' => 'AphrontView',
'PhabricatorSearchSelectController' => 'PhabricatorSearchController',
'PhabricatorSearchSelectController' => 'PhabricatorSearchBaseController',
'PhabricatorSearchUserIndexer' => 'PhabricatorSearchDocumentIndexer',
'PhabricatorSlowvoteChoice' => 'PhabricatorSlowvoteDAO',
'PhabricatorSlowvoteComment' => 'PhabricatorSlowvoteDAO',

View file

@ -1,7 +1,7 @@
<?php
/*
* Copyright 2011 Facebook, Inc.
* 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.
@ -19,7 +19,7 @@
/**
* @group console
*/
class DarkConsoleController extends PhabricatorController {
final class DarkConsoleController extends PhabricatorController {
protected $op;
protected $data;

View file

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

View file

@ -1,7 +1,7 @@
<?php
/*
* Copyright 2011 Facebook, Inc.
* 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.
@ -16,7 +16,8 @@
* limitations under the License.
*/
class PhabricatorDisabledUserController extends PhabricatorAuthController {
final class PhabricatorDisabledUserController
extends PhabricatorAuthController {
public function shouldRequireEnabledUser() {
return false;

View file

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

View file

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

View file

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

View file

@ -1,7 +1,7 @@
<?php
/*
* Copyright 2011 Facebook, Inc.
* 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.
@ -16,7 +16,8 @@
* limitations under the License.
*/
class PhabricatorLogoutController extends PhabricatorAuthController {
final class PhabricatorLogoutController
extends PhabricatorAuthController {
public function shouldRequireLogin() {
return true;

View file

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

View file

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

View file

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

View file

@ -1,7 +1,7 @@
<?php
/*
* Copyright 2011 Facebook, Inc.
* 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.
@ -16,7 +16,7 @@
* limitations under the License.
*/
class PhabricatorRefreshCSRFController extends PhabricatorAuthController {
final class PhabricatorRefreshCSRFController extends PhabricatorAuthController {
public function processRequest() {
$request = $this->getRequest();

View file

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

View file

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

View file

@ -1,7 +1,7 @@
<?php
/*
* Copyright 2011 Facebook, Inc.
* 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.
@ -16,7 +16,7 @@
* limitations under the License.
*/
class Phabricator404Controller extends PhabricatorController {
final class Phabricator404Controller extends PhabricatorController {
public function processRequest() {
return new Aphront404Response();

View file

@ -1,7 +1,7 @@
<?php
/*
* Copyright 2011 Facebook, Inc.
* 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.
@ -16,7 +16,7 @@
* limitations under the License.
*/
class PhabricatorRedirectController extends PhabricatorController {
final class PhabricatorRedirectController extends PhabricatorController {
private $uri;

View file

@ -1,7 +1,7 @@
<?php
/*
* Copyright 2011 Facebook, Inc.
* 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.
@ -16,7 +16,7 @@
* limitations under the License.
*/
class PhabricatorCalendarBrowseController
final class PhabricatorCalendarBrowseController
extends PhabricatorCalendarController {
public function processRequest() {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,7 +1,7 @@
<?php
/*
* Copyright 2011 Facebook, Inc.
* 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.
@ -16,7 +16,7 @@
* limitations under the License.
*/
class PhabricatorCountdownListController
final class PhabricatorCountdownListController
extends PhabricatorCountdownController {
public function processRequest() {

View file

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

View file

@ -1,7 +1,7 @@
<?php
/*
* Copyright 2011 Facebook, Inc.
* 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.
@ -16,7 +16,7 @@
* limitations under the License.
*/
class PhabricatorDaemonCombinedLogController
final class PhabricatorDaemonCombinedLogController
extends PhabricatorDaemonController {

View file

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

View file

@ -1,7 +1,7 @@
<?php
/*
* Copyright 2011 Facebook, Inc.
* 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.
@ -16,7 +16,8 @@
* limitations under the License.
*/
class PhabricatorDaemonLogListController extends PhabricatorDaemonController {
final class PhabricatorDaemonLogListController
extends PhabricatorDaemonController {
public function processRequest() {
$request = $this->getRequest();

View file

@ -1,7 +1,7 @@
<?php
/*
* Copyright 2011 Facebook, Inc.
* 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.
@ -16,7 +16,8 @@
* limitations under the License.
*/
class PhabricatorDaemonLogViewController extends PhabricatorDaemonController {
final class PhabricatorDaemonLogViewController
extends PhabricatorDaemonController {
private $id;

View file

@ -1,7 +1,7 @@
<?php
/*
* Copyright 2011 Facebook, Inc.
* 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.
@ -16,7 +16,7 @@
* limitations under the License.
*/
class PhabricatorDaemonTimelineConsoleController
final class PhabricatorDaemonTimelineConsoleController
extends PhabricatorDaemonController {
public function processRequest() {

View file

@ -1,7 +1,7 @@
<?php
/*
* Copyright 2011 Facebook, Inc.
* 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.
@ -16,7 +16,7 @@
* limitations under the License.
*/
class PhabricatorDaemonTimelineEventController
final class PhabricatorDaemonTimelineEventController
extends PhabricatorDaemonController {
private $id;

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,7 +1,7 @@
<?php
/*
* Copyright 2011 Facebook, Inc.
* 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.
@ -16,7 +16,7 @@
* limitations under the License.
*/
class DifferentialDiffCreateController extends DifferentialController {
final class DifferentialDiffCreateController extends DifferentialController {
public function processRequest() {

View file

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

View file

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

View file

@ -1,7 +1,7 @@
<?php
/*
* Copyright 2011 Facebook, Inc.
* 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.
@ -16,7 +16,7 @@
* limitations under the License.
*/
class DifferentialInlineCommentPreviewController
final class DifferentialInlineCommentPreviewController
extends DifferentialController {
private $revisionID;

View file

@ -1,7 +1,7 @@
<?php
/*
* Copyright 2011 Facebook, Inc.
* 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.
@ -16,7 +16,7 @@
* limitations under the License.
*/
class DifferentialRevisionEditController extends DifferentialController {
final class DifferentialRevisionEditController extends DifferentialController {
private $id;

View file

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

View file

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

View file

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

View file

@ -1,7 +1,7 @@
<?php
/*
* Copyright 2011 Facebook, Inc.
* 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.
@ -16,7 +16,7 @@
* limitations under the License.
*/
class DifferentialSubscribeController extends DifferentialController {
final class DifferentialSubscribeController extends DifferentialController {
private $id;
private $action;

View file

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

View file

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

View file

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

View file

@ -1,7 +1,7 @@
<?php
/*
* Copyright 2011 Facebook, Inc.
* 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.
@ -16,7 +16,7 @@
* limitations under the License.
*/
class DiffusionDiffController extends DiffusionController {
final class DiffusionDiffController extends DiffusionController {
public function willProcessRequest(array $data) {
$request = $this->getRequest();

View file

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

View file

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

View file

@ -1,7 +1,7 @@
<?php
/*
* Copyright 2011 Facebook, Inc.
* 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.
@ -16,7 +16,7 @@
* limitations under the License.
*/
class DiffusionHomeController extends DiffusionController {
final class DiffusionHomeController extends DiffusionController {
public function processRequest() {
$request = $this->getRequest();

View file

@ -1,7 +1,7 @@
<?php
/*
* Copyright 2011 Facebook, Inc.
* 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.
@ -16,7 +16,7 @@
* limitations under the License.
*/
class DiffusionLastModifiedController extends DiffusionController {
final class DiffusionLastModifiedController extends DiffusionController {
public function processRequest() {
$drequest = $this->getDiffusionRequest();

View file

@ -1,7 +1,7 @@
<?php
/*
* Copyright 2011 Facebook, Inc.
* 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.
@ -16,7 +16,7 @@
* limitations under the License.
*/
class DiffusionPathCompleteController extends DiffusionController {
final class DiffusionPathCompleteController extends DiffusionController {
public function willProcessRequest(array $data) {
// Don't build a DiffusionRequest.

View file

@ -1,7 +1,7 @@
<?php
/*
* Copyright 2011 Facebook, Inc.
* 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.
@ -16,7 +16,7 @@
* limitations under the License.
*/
class DiffusionPathValidateController extends DiffusionController {
final class DiffusionPathValidateController extends DiffusionController {
public function willProcessRequest(array $data) {
// Don't build a DiffusionRequest.

View file

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

View file

@ -1,7 +1,7 @@
<?php
/*
* Copyright 2011 Facebook, Inc.
* 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.
@ -16,7 +16,7 @@
* limitations under the License.
*/
class DiffusionSymbolController extends DiffusionController {
final class DiffusionSymbolController extends DiffusionController {
private $name;

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,7 +1,7 @@
<?php
/*
* Copyright 2011 Facebook, Inc.
* 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.
@ -16,7 +16,8 @@
* limitations under the License.
*/
class PhabricatorFileDropUploadController extends PhabricatorFileController {
final class PhabricatorFileDropUploadController
extends PhabricatorFileController {
public function processRequest() {
$request = $this->getRequest();

View file

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

View file

@ -1,7 +1,7 @@
<?php
/*
* Copyright 2011 Facebook, Inc.
* 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.
@ -16,7 +16,8 @@
* limitations under the License.
*/
class PhabricatorFileMacroDeleteController extends PhabricatorFileController {
final class PhabricatorFileMacroDeleteController
extends PhabricatorFileController {
private $id;

View file

@ -1,7 +1,7 @@
<?php
/*
* Copyright 2011 Facebook, Inc.
* 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.
@ -16,7 +16,8 @@
* limitations under the License.
*/
class PhabricatorFileMacroEditController extends PhabricatorFileController {
final class PhabricatorFileMacroEditController
extends PhabricatorFileController {
private $id;

View file

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

View file

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

View file

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

View file

@ -1,7 +1,7 @@
<?php
/*
* Copyright 2011 Facebook, Inc.
* 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.
@ -16,7 +16,7 @@
* limitations under the License.
*/
class PhabricatorFileUploadController extends PhabricatorFileController {
final class PhabricatorFileUploadController extends PhabricatorFileController {
public function processRequest() {

View file

@ -1,7 +1,7 @@
<?php
/*
* Copyright 2011 Facebook, Inc.
* 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.
@ -16,7 +16,7 @@
* limitations under the License.
*/
class PhabricatorHelpKeyboardShortcutController
final class PhabricatorHelpKeyboardShortcutController
extends PhabricatorHelpController {
public function processRequest() {

View file

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

View file

@ -1,7 +1,7 @@
<?php
/*
* Copyright 2011 Facebook, Inc.
* 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.
@ -16,7 +16,7 @@
* limitations under the License.
*/
class HeraldDeleteController extends HeraldController {
final class HeraldDeleteController extends HeraldController {
private $id;

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,7 +1,7 @@
<?php
/*
* Copyright 2011 Facebook, Inc.
* 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.
@ -16,7 +16,7 @@
* limitations under the License.
*/
class HeraldTranscriptListController extends HeraldController {
final class HeraldTranscriptListController extends HeraldController {
public function getFilter() {
return 'transcript';

View file

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

View file

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

View file

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

View file

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

View file

@ -1,7 +1,7 @@
<?php
/*
* Copyright 2011 Facebook, Inc.
* 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.
@ -19,7 +19,7 @@
/**
* @group maniphest
*/
class ManiphestTransactionPreviewController extends ManiphestController {
final class ManiphestTransactionPreviewController extends ManiphestController {
private $id;

View file

@ -1,7 +1,7 @@
<?php
/*
* Copyright 2011 Facebook, Inc.
* 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.
@ -19,7 +19,7 @@
/**
* @group maniphest
*/
class ManiphestTransactionSaveController extends ManiphestController {
final class ManiphestTransactionSaveController extends ManiphestController {
public function processRequest() {
$request = $this->getRequest();

View file

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

View file

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

View file

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

View file

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

View file

@ -1,7 +1,7 @@
<?php
/*
* Copyright 2011 Facebook, Inc.
* 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.
@ -16,7 +16,7 @@
* limitations under the License.
*/
class PhabricatorMetaMTAReceiveController
final class PhabricatorMetaMTAReceiveController
extends PhabricatorMetaMTAController {
public function processRequest() {

View file

@ -1,7 +1,7 @@
<?php
/*
* Copyright 2011 Facebook, Inc.
* 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.
@ -16,7 +16,7 @@
* limitations under the License.
*/
class PhabricatorMetaMTAReceivedListController
final class PhabricatorMetaMTAReceivedListController
extends PhabricatorMetaMTAController {
public function processRequest() {

View file

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

View file

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

View file

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

View file

@ -1,7 +1,7 @@
<?php
/*
* Copyright 2011 Facebook, Inc.
* 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.
@ -16,7 +16,8 @@
* limitations under the License.
*/
class PhabricatorOwnersDeleteController extends PhabricatorOwnersController {
final class PhabricatorOwnersDeleteController
extends PhabricatorOwnersController {
private $id;

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