darles / remote-call-bundle
Symfony2 RemoteCallBundle
dev-master / 0.1.x-dev
2013-12-17 07:58 UTC
Requires
- php: >=5.4.0
- symfony/framework-bundle: ~2.3
Requires (Dev)
- twig/twig: ~1.5
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)快速打开当前控制器、模板和实体。
演示
- https://www.dropbox.com/s/dfcvdmrbtvpyt51/remote_call_bundle_example.png
- http://www.youtube.com/watch?v=fV5G2sVM0hw
安装
- 将 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);"