We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e73699 commit b31259eCopy full SHA for b31259e
1 file changed
src/DispatchConfig.php
@@ -120,13 +120,14 @@ public function setRouter(callable $call): self
120
*/
121
public function loadConfigFile(string $path): void
122
{
123
- $path = realpath($path . '.php');
+ $path = realpath($path);
124
125
if ($path === false) {
126
throw new Exception('The config file does not exist');
127
}
128
129
$config = require $path;
130
+ // Add json logic here in the future
131
if (!is_array($config)) {
132
throw new Exception('The config file do not return a array');
133
0 commit comments