定制 tacone/silex-propel-web-profiler 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tacone/silex-propel-web-profiler

Composer 安装命令:

composer require tacone/silex-propel-web-profiler

包简介

Extending Silex WebProfiler with Propel information

README 文档

README

A Silex Service Provider that lists the DB queries generated by Propel 1.6.x in the Silex Web Profiler in pretty much the same way the Symfony Profiler does in Symfony Standard Edition.

Installation

Add it to your composer.json:

require "tacone/silex-propel-web-profiler": "0.*"

Update composer:

php composer.phar update

Then register it after Propel and the Silex Web Profiler:

$app->register(new PropelWebProfilerServiceProvider());

Point your browser to /index_dev.php and you should see Propel in your debug bar.

Sample registration of all of them:

$app->register(new Propel\Silex\PropelServiceProvider(), array(
    'propel.config_file' => __DIR__ . '/../resources/generated/propel-config/propel-conf.php',
    'propel.model_path' => __DIR__ . '/',
));

if ($app['debug'] && isset($app['cache.path'])) {
    $app->register(new ServiceControllerServiceProvider());
    $app->register(new WebProfilerServiceProvider(), array(
        'profiler.cache_dir' => $app['cache.path'].'/profiler',
    ));
    
    $app->register(new PropelWebProfilerServiceProvider());
}

Notes:

Despite doing my best I could not understand how to fully extract the Propel configuration. Because of that, many ? will show in the configuration section of the Propel panel. That's perfectly fine. If you know how to get the data, feel free to send me a Pull Request.

Also note that using the Web Profiler makes Silex very slow.

For the lazy

I mantain a fork of the popular Silex Kitchen Sink Edition, with Propel and the Profiler pre-installed here.

统计信息

  • 总下载量: 156
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-05-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固