Skip to content

Commit

Permalink
added app_dev.php as default on Symfony2 projects
Browse files Browse the repository at this point in the history
  • Loading branch information
mykiwi committed Jan 5, 2015
1 parent c0d0c4f commit cdfdcf2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit cdfdcf2

Please sign in to comment.