Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "modulusphp/utility",
"description": "Utility component for Modulus",
"version": "1.9.4.4",
"version": "1.9.4.5",
"license": "MIT",
"type": "package",
"authors": [{
Expand All @@ -23,7 +23,7 @@
},
"autoload": {
"psr-4": {
"Modulus\\Utility\\": ""
"Modulus\\Utility\\": "src/"
}
},
"minimum-stability": "stable"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 6 additions & 7 deletions Reflect.php → src/Reflect.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
use ReflectionMethod;
use ReflectionFunction;

use Modulus\Http\Request;
use Modulus\Http\Request\Base;
use Modulus\Utility\Groupable;
use Modulus\Framework\Mocks\RouteBinding;

use Modulus\Framework\Mocks\RouteBinding;
use Illuminate\Database\Eloquent\Model as EloquentModel;
use Illuminate\Database\Eloquent\Collection as EloquentCollection;

Expand All @@ -20,7 +20,7 @@ class Reflect
/**
* $request
*
* @var \Request
* @var \Modulus\Http\Request\Base
*/
public static $request;

Expand Down Expand Up @@ -62,9 +62,8 @@ private function celebrate($params, $variables, $route, $i = 0, $args = []) : ar

if (class_exists($class)) {
$instance = new $class();
if ($instance instanceof Request) {
$data = array_merge($_POST, $_FILES);
$request = new $class($data);
if ($instance instanceof Base) {
$request = new $class();

$args[$where] = $request;

Expand Down Expand Up @@ -129,7 +128,7 @@ private function hasRequest($params, $variables, $i = null) : array
{
foreach($params as $key => $param) {
$class = '\\' . $param->getType();
if (class_exists($class) && new $class() instanceof Request) {
if (class_exists($class) && new $class() instanceof Base) {
$i = $key;
}
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.