Skip to content

Commit

Permalink
Merge pull request #663 from leofeyer/patch-1
Browse files Browse the repository at this point in the history
[Contao] Support the app_dev.php front controller
  • Loading branch information
mattstauffer authored Nov 7, 2018
2 parents 0b23300 + 72c3474 commit 312714d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cli/drivers/ContaoValetDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ public function frontControllerPath($sitePath, $siteName, $uri)
return $sitePath.'/web/install.php';
}

if (0 === strncmp($uri, '/app_dev.php', 12)) {
$_SERVER['SCRIPT_NAME'] = '/app_dev.php';
$_SERVER['SCRIPT_FILENAME'] = $sitePath.'/app_dev.php';

return $sitePath.'/web/app_dev.php';
}

return $sitePath.'/web/app.php';
}
}

0 comments on commit 312714d

Please sign in to comment.