From cdfdcf2d6603a6f49b954f21a6dd4b4ec8c6a648 Mon Sep 17 00:00:00 2001 From: Romain Gautier Date: Mon, 5 Jan 2015 17:44:00 +0100 Subject: [PATCH] added app_dev.php as default on Symfony2 projects --- index.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.php b/index.php index 7d6d7ee..509fb92 100644 --- a/index.php +++ b/index.php @@ -477,6 +477,10 @@ function getVhosts($vhost_config_path) $v['name'] = substr($v['url'], 7, -1); $v['img'] = getVhostPreview($v); + if (file_exists($v['path'].'/app_dev.php')) { + $v['url'] .= 'app_dev.php/'; + } + if (isset($GLOBALS['vhost_to_ignore']) && in_array($v['name'], $GLOBALS['vhost_to_ignore'])) { continue; }