Skip to content

Commit 3b2de38

Browse files
authored
Fix route path in phar (#1624)
Don't call realpath() on route file path, it breaks routes inside phars. Also, it doesn't match the configPath above it. I can't figure out why realpath() would be called here.
1 parent 3a6fda8 commit 3b2de38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function boot()
104104
$configPath = __DIR__ . '/../config/debugbar.php';
105105
$this->publishes([$configPath => $this->getConfigPath()], 'config');
106106

107-
$this->loadRoutesFrom(realpath(__DIR__ . '/debugbar-routes.php'));
107+
$this->loadRoutesFrom(__DIR__ . '/debugbar-routes.php');
108108

109109
$this->registerMiddleware(InjectDebugbar::class);
110110

0 commit comments

Comments
 (0)