Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Variables
router.php File Reference

Go to the source code of this file.

Variables

const DEBUG_ROUTER false
 
 $debug
 

Variable Documentation

◆ $debug

$debug
Initial value:
= function ($val) {
if (!DEBUG_ROUTER) {
return;
}
if (is_array($val)) {
$val = json_encode($val);
}
error_log('debug: '.$val);
}
const DEBUG_ROUTER
Definition: router.php:20

Definition at line 22 of file router.php.

◆ DEBUG_ROUTER

const DEBUG_ROUTER false

Copyright © Magento, Inc. All rights reserved. See COPYING.txt for license details.this is a router file for the php Built-in web server https://secure.php.net/manual/en/features.commandline.webserver.php

It provides the same "rewrites" as the .htaccess for apache, or the nginx.conf.sample for nginx.

example usage: php -S 127.0.0.41:8082 -t ./pub/ ./router.phpSet it to true to enable debug mode

Definition at line 20 of file router.php.