Skip to content

Commit 2902a61

Browse files
committed
style: change config style load
1 parent 36bbd55 commit 2902a61

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/AbstractKernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
abstract class AbstractKernel implements KernelInterface
3131
{
32-
public const CONFIG_FILE_PATH = __DIR__ . '/../emitron.config';
32+
public const CONFIG_FILE_PATH = __DIR__ . '/../emitron.config.php';
3333
protected static ?string $configFilePath = null;
3434
protected static ?string $routerFilePath = null;
3535
protected ContainerInterface $container;

src/DispatchConfig.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class DispatchConfig implements DispatchConfigInterface
3434
public function __construct(string|null|ConfigPropsInterface $props = null)
3535
{
3636
if (!($props instanceof ConfigPropsInterface)) {
37-
$this->loadConfigFile(($props === null) ? __DIR__ . '/../emitron.config' : $props);
37+
$this->loadConfigFile(($props === null) ? __DIR__ . '/../emitron.config.php' : $props);
3838
}
3939
}
4040

@@ -120,7 +120,7 @@ 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');

0 commit comments

Comments
 (0)