timosh/php-activerecord-profiler-service

install this to show sql queries in silex profiler

v1.1 2016-08-25 17:02 UTC

This package is not auto-updated.

Last update: 2024-04-13 17:24:28 UTC


README

PHP ActiveRecordProfilerService for Silex2. Actualy for using it you must install php activerecord service provider https://packagist.org/packages/timosh/php-activerecord-service-provider (it implements phpactiverecord.org to you profject) awcose for using profiler you have to install silex profiler and twig.

#Using

$app->register(new \ActiveRecordServiceProvider\ActiveRecord(array(
        'ar.model_path'   => __DIR__.'/Model',
        'ar.default_connection' => 'development',
        'ar.connections' => array(
            'development' => 'mysql://user:password@host/database'
        ),
        'db.active_record.logger'=> new ActiveRecordServiceProvider\Logger(), //here we enabling our logger
    ))
);