getProperty('rules'); $prop->setAccessible(true); $rules = $prop->getValue(); $getBucket = isset($rules['get']) ? $rules['get'] : []; $starBucket = isset($rules['*']) ? $rules['*'] : []; $out = [ 'request_path' => $this->request->path(), 'request_pathinfo' => $this->request->pathinfo(), 'request_module' => $this->request->module(), 'request_controller' => $this->request->controller(), 'request_action' => $this->request->action(), 'server_PATH_INFO' => isset($_SERVER['PATH_INFO']) ? $_SERVER['PATH_INFO'] : null, 'get_s' => isset($_GET['s']) ? $_GET['s'] : null, 'url_route_on' => Config::get('url_route_on'), 'route_config_file' => Config::get('route_config_file'), 'pathinfo_depr' => Config::get('pathinfo_depr'), 'CONF_PATH' => CONF_PATH, 'route_file_exists' => is_file(CONF_PATH . 'route.php'), 'runtime_route_file' => is_file(RUNTIME_PATH . 'route.php'), 'rule_buckets' => array_keys($rules), 'get_bucket_count' => count($getBucket), 'star_bucket_count' => count($starBucket), 'get_sample' => array_slice(array_keys($getBucket), 0, 8), 'has_static_rule' => isset($getBucket['api/v1/home/banners']), 'star_has_static' => isset($starBucket['api/v1/home/banners']), ]; echo json_encode($out, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT); exit; } }