Revert "RobotsTxt: specify more verbose classes"
Summary:
This reverts commit 88946a7fe2
.
PHP Fatal error: Cannot override final method PhabricatorRobotsController::processRequest() in /var/www/phorge/phorge/src/extensions/PhabricatorCustomRobotsTxtController.php on line 13
Fatal error: Cannot override final method PhabricatorRobotsController::processRequest() in /var/www/phorge/phorge/src/extensions/PhabricatorCustomRobotsTxtController.php on line 13
Signed-off-by: Yongmin Hong <revi@omglol.email>
Reviewers: #acl_sudoers, #blessed_reviewers, revi
Reviewed By: #acl_sudoers, #blessed_reviewers, revi
Differential Revision: https://issuetracker.revi.xyz/D10
This commit is contained in:
parent
88946a7fe2
commit
c628542223
2 changed files with 2 additions and 6 deletions
4
.github/workflows/quicksyntaxcheck.yml
vendored
4
.github/workflows/quicksyntaxcheck.yml
vendored
|
@ -12,7 +12,5 @@ jobs:
|
|||
phpsyntax:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: "PHP Basic Syntax Check [robots.txt]"
|
||||
- name: PHP Basic Syntax Check
|
||||
run: php -l PhabExt/PhabricatorCustomRobotsTxtController.php
|
||||
- name: "PHP Basic Syntax Check [time.php]"
|
||||
run: php -l time.php
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
abstract class PhabricatorRobotsPlatformController extends PhabricatorRobotsController {
|
||||
abstract class PhabricatorRobotsController extends PhabricatorController {
|
||||
|
||||
public function shouldRequireLogin() {
|
||||
return false;
|
||||
|
@ -103,8 +103,6 @@ public function processRequest() {
|
|||
|
||||
$content = implode("\n", $out)."\n";
|
||||
|
||||
// ToDo: Cloudflare does not cache the robots.txt due to the presence of Set-Cookie.
|
||||
// T126
|
||||
return id(new AphrontPlainTextResponse())
|
||||
->setContent($content)
|
||||
->setCacheDurationInSeconds(phutil_units('2 hours in seconds'))
|
||||
|
|
Loading…
Reference in a new issue