File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 2929
3030abstract 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 ;
Original file line number Diff line number Diff 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 ' );
You can’t perform that action at this time.
0 commit comments