mirror of
https://github.com/flarum/core.git
synced 2025-08-01 14:10:37 +02:00
Use more honest method names
This commit is contained in:
@@ -47,9 +47,9 @@ class InstalledApp implements AppInterface
|
|||||||
public function getRequestHandler()
|
public function getRequestHandler()
|
||||||
{
|
{
|
||||||
if ($this->inMaintenanceMode()) {
|
if ($this->inMaintenanceMode()) {
|
||||||
return $this->getMaintenanceMiddleware();
|
return $this->getMaintenanceHandler();
|
||||||
} elseif ($this->needsUpdate()) {
|
} elseif ($this->needsUpdate()) {
|
||||||
return $this->getUpdaterMiddleware();
|
return $this->getUpdaterHandler();
|
||||||
}
|
}
|
||||||
|
|
||||||
$pipe = new MiddlewarePipe;
|
$pipe = new MiddlewarePipe;
|
||||||
@@ -69,7 +69,7 @@ class InstalledApp implements AppInterface
|
|||||||
/**
|
/**
|
||||||
* @return \Psr\Http\Server\RequestHandlerInterface
|
* @return \Psr\Http\Server\RequestHandlerInterface
|
||||||
*/
|
*/
|
||||||
private function getMaintenanceMiddleware()
|
private function getMaintenanceHandler()
|
||||||
{
|
{
|
||||||
$pipe = new MiddlewarePipe;
|
$pipe = new MiddlewarePipe;
|
||||||
|
|
||||||
@@ -95,7 +95,7 @@ class InstalledApp implements AppInterface
|
|||||||
/**
|
/**
|
||||||
* @return \Psr\Http\Server\RequestHandlerInterface
|
* @return \Psr\Http\Server\RequestHandlerInterface
|
||||||
*/
|
*/
|
||||||
public function getUpdaterMiddleware()
|
public function getUpdaterHandler()
|
||||||
{
|
{
|
||||||
$pipe = new MiddlewarePipe;
|
$pipe = new MiddlewarePipe;
|
||||||
$pipe->pipe(
|
$pipe->pipe(
|
||||||
|
Reference in New Issue
Block a user