We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 870c453 commit 9241905Copy full SHA for 9241905
1 file changed
src/Mvc/Cli/Commands/Routes/ListCommand.php
@@ -124,9 +124,10 @@ private function loadRoutes( string $configPath ): array
124
{
125
$settings = new Yaml( $configFile );
126
127
- // Get base path from neuron.yaml
128
- $neuronSettings = file_exists( $neuronFile ) ? new Yaml( $neuronFile ) : null;
129
- $basePath = $neuronSettings?->get( 'system', 'base_path' ) ?? dirname( $configPath );
+ // Use actual filesystem path
+ // Don't use system.base_path which is for runtime/container deployment
+ // If config is in a 'config' directory, use parent; otherwise use config path itself
130
+ $basePath = (basename($configPath) === 'config') ? dirname($configPath) : $configPath;
131
132
// Get controller paths from configuration
133
if( $configKey === 'controller_paths' )
0 commit comments