Skip to content

Commit 58ccc6a

Browse files
committed
Controller methods now always receive request objects.
1 parent 592c933 commit 58ccc6a

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/Mvc/Application.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,8 @@ public function executeController( array $parameters, string $requestName = '' )
283283
}
284284
}
285285

286+
287+
286288
return $controller->$method(
287289
$parameters,
288290
$request

src/Mvc/Controllers/Base.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44

55
use League\CommonMark\Exception\CommonMarkException;
66
use Neuron\Core\Exceptions\BadRequestMethod;
7-
use Neuron\Data\Filter\Get;
8-
use Neuron\Data\Filter\Post;
9-
use Neuron\Data\Filter\Server;
107
use Neuron\Data\Setting\SettingManager;
118
use Neuron\Mvc\Application;
129
use Neuron\Mvc\Cache\CacheConfig;
@@ -18,7 +15,6 @@
1815
use Neuron\Mvc\Views\Html;
1916
use Neuron\Mvc\Views\Json;
2017
use Neuron\Mvc\Views\Markdown;
21-
use Neuron\Mvc\Views\NotFound;
2218
use Neuron\Mvc\Views\Xml;
2319
use Neuron\Routing\Router;
2420

versionlog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
## 0.8.14
2+
* Dispatched controller methods now always receive request objects, even if empty.
23

34
## 0.8.13 2025-11-13
45
* Added get/post/server filter wrappers to controller base.

0 commit comments

Comments
 (0)