Guest User

Untitled

a guest
Jul 20th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. 1. in /Applications/MAMP/htdocs/craft/vendor/craftcms/cms/src/web/Application.php at line 498
  2. 489490491492493494495496497498499500501502503504505506507
  3.  
  4. // Should they be?
  5. if (!$isInstalled) {
  6. // Give it to them if accessing the CP
  7. if ($isCpRequest) {
  8. $url = UrlHelper::url('install');
  9. $this->getResponse()->redirect($url);
  10. $this->end();
  11. } // Otherwise return a 503
  12. else {
  13. throw new ServiceUnavailableHttpException();
  14. }
  15. }
  16.  
  17. return null;
  18. }
  19.  
  20. /**
  21. * Processes action requests.
  22. *
  23.  
  24.  
  25. 2. in /Applications/MAMP/htdocs/craft/vendor/craftcms/cms/src/web/Application.php at line 175 – craftwebApplication::_processInstallRequest(craftwebRequest)
  26. 169170171172173174175176177178179180181
  27.  
  28. } else {
  29. // In case PHP is already setting one
  30. header_remove('X-Powered-By');
  31. }
  32.  
  33. // Process install requests
  34. if (($response = $this->_processInstallRequest($request)) !== null) {
  35. return $response;
  36. }
  37.  
  38. // Check if the app path has changed. If so, run the requirements check again.
  39. if (($response = $this->_processRequirementsCheck($request)) !== null) {
  40. $this->_unregisterDebugModule();
  41.  
  42.  
  43. 3. in /Applications/MAMP/htdocs/craft/vendor/yiisoft/yii2/base/Application.php at line 386 – craftwebApplication::handleRequest(craftwebRequest)
  44. 380381382383384385386387388389390391392
  45.  
  46. {
  47. try {
  48. $this->state = self::STATE_BEFORE_REQUEST;
  49. $this->trigger(self::EVENT_BEFORE_REQUEST);
  50.  
  51. $this->state = self::STATE_HANDLING_REQUEST;
  52. $response = $this->handleRequest($this->getRequest());
  53.  
  54. $this->state = self::STATE_AFTER_REQUEST;
  55. $this->trigger(self::EVENT_AFTER_REQUEST);
  56.  
  57. $this->state = self::STATE_SENDING_RESPONSE;
  58. $response->send();
  59.  
  60.  
  61. 4. in /Applications/MAMP/htdocs/craft/web/index.php at line 21 – yiibaseApplication::run()
Add Comment
Please, Sign In to add comment