mirror of
https://github.com/laravel/valet.git
synced 2026-02-06 16:50:09 +01:00
@@ -13,7 +13,9 @@ class SymfonyValetDriver extends ValetDriver
|
||||
public function serves($sitePath, $siteName, $uri)
|
||||
{
|
||||
return (file_exists($sitePath.'/web/app_dev.php') || file_exists($sitePath.'/web/app.php')) &&
|
||||
(file_exists($sitePath.'/app/AppKernel.php'));
|
||||
(file_exists($sitePath.'/app/AppKernel.php')) || (file_exists($sitePath.'/web/index.php')) &&
|
||||
(file_exists($sitePath.'/src/Kernel.php'))
|
||||
;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -47,6 +49,8 @@ public function frontControllerPath($sitePath, $siteName, $uri)
|
||||
return $frontControllerPath;
|
||||
} elseif (file_exists($frontControllerPath = $sitePath.'/web/app.php')) {
|
||||
return $frontControllerPath;
|
||||
} elseif (file_exists($frontControllerPath = $sitePath.'/web/index.php')) {
|
||||
return $frontControllerPath;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user