Skip to content

Commit 4d49e66

Browse files
mayecoadamwathan
authored andcommitted
Add new Symfony directory structure in driver
This fix #370
1 parent 99c2f64 commit 4d49e66

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cli/drivers/SymfonyValetDriver.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ class SymfonyValetDriver extends ValetDriver
1313
public function serves($sitePath, $siteName, $uri)
1414
{
1515
return (file_exists($sitePath.'/web/app_dev.php') || file_exists($sitePath.'/web/app.php')) &&
16-
(file_exists($sitePath.'/app/AppKernel.php'));
16+
(file_exists($sitePath.'/app/AppKernel.php')) || (file_exists($sitePath.'/web/index.php')) &&
17+
(file_exists($sitePath.'/src/Kernel.php'))
18+
;
1719
}
1820

1921
/**
@@ -47,6 +49,8 @@ public function frontControllerPath($sitePath, $siteName, $uri)
4749
return $frontControllerPath;
4850
} elseif (file_exists($frontControllerPath = $sitePath.'/web/app.php')) {
4951
return $frontControllerPath;
52+
} elseif (file_exists($frontControllerPath = $sitePath.'/web/index.php')) {
53+
return $frontControllerPath;
5054
}
5155
}
5256
}

0 commit comments

Comments
 (0)