darles/remote-call-bundle

Symfony2 RemoteCallBundle

安装: 816

依赖者: 0

建议者: 0

安全性: 0

星标: 9

关注者: 4

分支: 1

开放问题: 0

类型:symfony2-bundle

dev-master / 0.1.x-dev 2013-12-17 07:58 UTC

This package is not auto-updated.

Last update: 2024-09-24 00:19:40 UTC


README

DarlesRemoteCallBundle 添加了链接,在 Symfony2 性能分析工具栏中使用 RemoteCall 插件(http://plugins.jetbrains.com/plugin/6027?pr=phpStorm)快速打开当前控制器、模板和实体。

演示

安装

  • 将 RemoteCall 插件安装到您的 PHPStorm IDE

http://plugins.jetbrains.com/plugin/6027?pr=phpStorm

  • 在 composer.json 的 require-dev 部分中添加 DarlesRemoteCallBundle
{
    "require-dev": {
        "darles/remote-call-bundle": "dev-master"
    }
}
  • 在开发环境中启用该包
<?php
// app/AppKernel.php

public function registerBundles()
{
    if (in_array($this->getEnvironment(), array('dev', 'test'))) {
        //..
        $bundles[] = new Darles\Bundle\RemoteCallBundle\DarlesRemoteCallBundle();
    }
}
  • 在开发环境中打开您的 Symfony2 应用程序,您应该在性能分析工具栏中看到“在 PHPStorm 中打开”选项卡。

许可证

此包位于 MIT 许可之下。

XDebug & RemoteCall

通过向您的 php.ini 文件添加此行来启用 XDebug 调试堆栈跟踪中的 RemoteCall 链接

xdebug.file_link_format="javascript:var rq = new XMLHttpRequest(); rq.open('GET', 'https://:8091?message=%f:%l', true); rq.send(null);"