Symfony 探查器 url 到最后一个请求
Symfony profiler url to last request
有没有url喜欢的
http://mysymfony.app/_profiler/LAST_ID?panel=db ???
配置文件 a json API 时没有 Symfony 配置文件页脚,每次返回概述都花费时间。
据我所知,没有办法做到这一点。我检查了 the bundle and there's no route,似乎涵盖了这一点。
不过,在我看来,您可以为它编写自己的路线和操作,这似乎是合理的。启动 here 然后我认为您的操作的基本逻辑如下所示
$token = array_pop($this->profiler->find(null, null, 1, null, null, null));
return new RedirectResponse(
$this->generator->generate(
'_profiler',
array('token' => $token, 'panel' => 'db')
),
302,
array('Content-Type' => 'text/html')
);
应该有一个名为 header 的响应:"X-Debug-Token-Link" 这是对最新分析器的直接 link。您可以在每个请求后在 google chrome devtools 中检查它。
有没有url喜欢的
http://mysymfony.app/_profiler/LAST_ID?panel=db ???
配置文件 a json API 时没有 Symfony 配置文件页脚,每次返回概述都花费时间。
据我所知,没有办法做到这一点。我检查了 the bundle and there's no route,似乎涵盖了这一点。
不过,在我看来,您可以为它编写自己的路线和操作,这似乎是合理的。启动 here 然后我认为您的操作的基本逻辑如下所示
$token = array_pop($this->profiler->find(null, null, 1, null, null, null));
return new RedirectResponse(
$this->generator->generate(
'_profiler',
array('token' => $token, 'panel' => 'db')
),
302,
array('Content-Type' => 'text/html')
);
应该有一个名为 header 的响应:"X-Debug-Token-Link" 这是对最新分析器的直接 link。您可以在每个请求后在 google chrome devtools 中检查它。