1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-06 16:50:09 +01:00

Add new Symfony directory structure in driver

This fix #370
This commit is contained in:
Mario Young
2017-05-03 18:01:11 -03:00
committed by Adam Wathan
parent 99c2f64c14
commit 4d49e666a7

View File

@@ -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;
}
}
}