Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15459735
D13546.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D13546.id.diff
View Options
diff --git a/src/applications/base/controller/PhabricatorController.php b/src/applications/base/controller/PhabricatorController.php
--- a/src/applications/base/controller/PhabricatorController.php
+++ b/src/applications/base/controller/PhabricatorController.php
@@ -157,19 +157,6 @@
}
}
- $event = new PhabricatorEvent(
- PhabricatorEventType::TYPE_CONTROLLER_CHECKREQUEST,
- array(
- 'request' => $request,
- 'controller' => $this,
- ));
- $event->setUser($user);
- PhutilEventEngine::dispatchEvent($event);
- $checker_controller = $event->getValue('controller');
- if ($checker_controller != $this) {
- return $this->delegateToController($checker_controller);
- }
-
$auth_class = 'PhabricatorAuthApplication';
$auth_application = PhabricatorApplication::getByClass($auth_class);
diff --git a/src/docs/user/userguide/events.diviner b/src/docs/user/userguide/events.diviner
--- a/src/docs/user/userguide/events.diviner
+++ b/src/docs/user/userguide/events.diviner
@@ -130,22 +130,6 @@
- `specification` Parameters that will be used to invoke the
`differential.createrevision` Conduit call.
-== Controller: Check Request ==
-
-The constant for this event is
-`PhabricatorEventType::TYPE_CONTROLLER_CHECKREQUEST`.
-
-This event is dispatched when controller is about to begin execution. It is
-meant for checking if the user is allowed to use the application at the moment.
-It can check if the user has performed too many operations recently, if his IP
-address is allowed or if the servers are overloaded to process the request.
-Data available on this event:
-
-- `request` Object of class @{class:AphrontRequest}.
-- `controller` Class name of the current controller.
-
-You can delegate the execution to another controller by modifying `controller`.
-
== Maniphest: Will Edit Task ==
The constant for this event is
diff --git a/src/infrastructure/events/constant/PhabricatorEventType.php b/src/infrastructure/events/constant/PhabricatorEventType.php
--- a/src/infrastructure/events/constant/PhabricatorEventType.php
+++ b/src/infrastructure/events/constant/PhabricatorEventType.php
@@ -6,8 +6,6 @@
*/
final class PhabricatorEventType extends PhutilEventType {
- const TYPE_CONTROLLER_CHECKREQUEST = 'controller.checkRequest';
-
const TYPE_MANIPHEST_WILLEDITTASK = 'maniphest.willEditTask';
const TYPE_MANIPHEST_DIDEDITTASK = 'maniphest.didEditTask';
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 1, 3:35 PM (1 w, 6 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7223684
Default Alt Text
D13546.id.diff (2 KB)
Attached To
Mode
D13546: Remove CHECKREQUEST event
Attached
Detach File
Event Timeline
Log In to Comment