无法安装探查器symfony flex [英] Can't install profiler symfony flex

查看:97
本文介绍了无法安装探查器symfony flex的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行composer req profiler后,我无法使用symfony探查器 我在4.0 beta版中使用symfony/skeleton,但我记得几个月前在3.3中进行测试时遇到了同样的问题.

I'm unable to use the symfony profiler after running composer req profiler I'm using symfony/skeleton in version 4.0 beta, but i remember having the same problem when i tested it a few months ago in 3.3.

工具栏不起作用,请在此处显示消息:

The toolbar isn't working, message here :

加载Web调试工具栏时发生错误.打开Web事件探查器.

An error occurred while loading the web debug toolbar. Open the web profiler.

当我点击打开Web分析器"时,出现404错误.

And when click on "open the web profiler", i have a 404 error.

如果有人解决了,谢谢您的帮助.如果没有,我将报告错误,而该错误仍在bêta中.

If someone resolved it, thank you for your help. If not, I'll report a bug while this is still in bêta.

关于安装: 用composer创建了一个项目,链接了4.0-beta版本中的symfony/skeleton软件包,链接如下: https://github.com. com/symfony/skeleton

About installation : created a project with composer, with the symfony/skeleton package in version 4.0-beta linked here : https://github.com/symfony/skeleton

我的php版本是7.1;我尝试通过上面的命令安装事件探查器.

My php version is 7.1 ; i try to install profiler from the command above.

推荐答案

尝试执行以下步骤:

composer create-project -s beta symfony/skeleton:4.0.x s40b1
cd s40b1
composer require web-server
composer require cli
composer require profiler

添加控制器

class DemoController extends AbstractController
{
    public function demoAction()
    {
        $html = <<<EOT
<!DOCTYPE html>
<html>
  <head><meta charset="UTF-8"><title>s4b1</title></head>
  <body>Demo Body</body>
</html>
EOT;
        return new Response($html);
    }
}

还有一条路线

demo:
    path: /demo
    defaults: { _controller: 'App\Controller\DemoController::demoAction' }

然后

bin/console cache:clear
bin/console server:run

导航到

http://127.0.0.1:8000/demo

如果可以,请确定您的配置在何处不同.

If it works then determine where your config is different.

这篇关于无法安装探查器symfony flex的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆