Skip to content

Commit

Permalink
Run Magento2 compiler when ?profile is appended to the url
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Sep 3, 2017
1 parent 64cf790 commit 1a9caea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cli/drivers/Magento2ValetDriver.php
Expand Up @@ -122,6 +122,10 @@ public function isStaticFile($sitePath, $siteName, $uri)
*/
public function frontControllerPath($sitePath, $siteName, $uri)
{
if(isset($_GET['profile'])) {
$_SERVER['MAGE_PROFILER'] = 'html';
}

if($uri === '/setup') {
Header('HTTP/1.1 301 Moved Permanently');
Header('Location: http://' . $_SERVER['HTTP_HOST'] . $uri . '/');
Expand Down

0 comments on commit 1a9caea

Please sign in to comment.