Skip to content

Commit 0c581a8

Browse files
author
Greg Bowler
committed
tweak: rename NoReloadDo to NoAutoReloadPost for consistency
1 parent eee6591 commit 0c581a8

File tree

4 files changed

+43
-31
lines changed

4 files changed

+43
-31
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"phpgt/dom": "^v4.0",
1919
"phpgt/domtemplate": "^v3.2",
2020
"phpgt/database": "^1.4",
21-
"phpgt/http": "^1.1",
21+
"phpgt/http": "dev-master as v1.1.9",
2222
"phpgt/logger": "^1.0",
2323
"phpgt/protectedglobal": "^v1.1",
2424
"phpgt/routing": "^1.0",

composer.lock

+37-25
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Logic/LogicAttribute/NoReloadDo.php renamed to src/Logic/LogicAttribute/NoAutoReloadPost.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44
use Attribute;
55

6-
class NoReloadDo extends Attribute {}
6+
class NoAutoReloadPost extends Attribute {}

src/Middleware/RequestHandler.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
use Gt\Session\Session;
3232
use Gt\Session\SessionSetup;
3333
use Gt\WebEngine\Logic\AppAutoloader;
34-
use Gt\WebEngine\Logic\LogicAttribute\NoReloadDo;
34+
use Gt\WebEngine\Logic\LogicAttribute\NoAutoReloadPost;
3535
use Gt\WebEngine\Logic\LogicExecutor;
3636
use Gt\WebEngine\View\BaseView;
3737
use Gt\WebEngine\View\NullView;
@@ -44,7 +44,7 @@ class RequestHandler implements RequestHandlerInterface {
4444
protected $finishCallback;
4545
protected Container $serviceContainer;
4646
protected Injector $injector;
47-
protected ResponseInterface $response;
47+
protected Response $response;
4848
protected Assembly $viewAssembly;
4949
protected Assembly $logicAssembly;
5050
protected DynamicPath $dynamicPath;
@@ -315,12 +315,12 @@ function(InputData $data)use($logicExecutor) {
315315

316316
foreach($logicExecutor->invoke($doName) as $file) {
317317
$attributeArray = $this->getAttributesFromFile($file);
318-
if(in_array(NoReloadDo::class, $attributeArray)) {
318+
if(in_array(NoAutoReloadPost::class, $attributeArray)) {
319319
$reloadResponse = false;
320320
}
321321
}
322322

323-
if($reloadResponse) {
323+
if($reloadResponse && $this->response->autoReloadPost) {
324324
$this->response->reload();
325325
}
326326
}

0 commit comments

Comments
 (0)