Skip to content

marvelig/ProfilerStorageBundle

 
 

Repository files navigation

ProfilerStorageBundle License

Sitetheory Profiler Storage Bundle for Symfony 2.8+

Package Information

Latest Stable Version Latest Unstable Version Total Downloads

Code Inspection

Scrutinizer Code Quality Code Coverage Build Status Code Intelligence Status

Overview

We'll be maintaining the following Profiler Bindings for the foreseeable future:

  • MemCache
  • MongoDB
  • MySQL
  • PDO
  • Redis
  • SQLite

Installation

Composer

Add this bundle to your Composer Package and follow the configuration below.

composer require sitetheory/profiler-storage-bundle

Configuration

Enable the Bundle:

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new Sitetheory\Bundle\ProfilerStorageBundle\SitetheoryProfilerStorageBundle()
        );

        // ...
    }

    // ...
}

Add the following to your config.yml to control the location for Profiler Storage:

Mongo

sitetheory_profiler_storage:
    profiler:
        defaultStorage: false
        class: Sitetheory\Bundle\ProfilerStorageBundle\Profiler\MongoDbProfilerStorage
        dsn: "mongodb://%user%:%password%@%host%:%port%/%name%/profiler"
        ttl: 3600

MySQL

sitetheory_profiler_storage:
    profiler:
        defaultStorage: false
        class: Sitetheory\Bundle\ProfilerStorageBundle\Profiler\MysqlProfilerStorage
        dsn: "mysql:host=%host%;port=%port%;dbname=%name%"
        username: "%user%"
        password: "%password%"
        ttl: 3600

About

Profiler Storage Bundle for Symfony 2.8+

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • PHP 100.0%