Skip to content

Commit b31259e

Browse files
committed
refactor: config file type
1 parent 6e73699 commit b31259e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/DispatchConfig.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,14 @@ public function setRouter(callable $call): self
120120
*/
121121
public function loadConfigFile(string $path): void
122122
{
123-
$path = realpath($path . '.php');
123+
$path = realpath($path);
124124

125125
if ($path === false) {
126126
throw new Exception('The config file does not exist');
127127
}
128128

129129
$config = require $path;
130+
// Add json logic here in the future
130131
if (!is_array($config)) {
131132
throw new Exception('The config file do not return a array');
132133
}

0 commit comments

Comments
 (0)