mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Add Doctrine data collector to profiler
This commit is contained in:
@@ -42,6 +42,7 @@
|
||||
"react/zmq" : "~0.2",
|
||||
"silex/silex" : "1.1.x-dev@dev",
|
||||
"silex/web-profiler" : "~1.0.0@dev",
|
||||
"sorien/silex-dbal-profiler" : "~1.0.0",
|
||||
"swiftmailer/swiftmailer" : "~4.3.0",
|
||||
"symfony/symfony" : "~2.4",
|
||||
"alchemy-fr/tcpdf-clone" : "~6.0",
|
||||
|
||||
44
composer.lock
generated
44
composer.lock
generated
@@ -3,7 +3,7 @@
|
||||
"This file locks the dependencies of your project to a known state",
|
||||
"Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file"
|
||||
],
|
||||
"hash": "ee3972e781af8721a6af65018129861f",
|
||||
"hash": "fd556cc5aba9ee057003b88569fceff3",
|
||||
"packages": [
|
||||
{
|
||||
"name": "alchemy-fr/tcpdf-clone",
|
||||
@@ -3257,6 +3257,48 @@
|
||||
"homepage": "http://silex.sensiolabs.org/",
|
||||
"time": "2014-01-30 06:11:24"
|
||||
},
|
||||
{
|
||||
"name": "sorien/silex-dbal-profiler",
|
||||
"version": "1.0.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/Sorien/silex-dbal-profiler.git",
|
||||
"reference": "8cbbef7a8fae53381d9005163070485471089908"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/Sorien/silex-dbal-profiler/zipball/8cbbef7a8fae53381d9005163070485471089908",
|
||||
"reference": "8cbbef7a8fae53381d9005163070485471089908",
|
||||
"shasum": ""
|
||||
},
|
||||
"require-dev": {
|
||||
"silex/silex": "~1.0"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-0": {
|
||||
"Sorien": "src"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Stanislav Turza",
|
||||
"role": "Developer"
|
||||
}
|
||||
],
|
||||
"description": "Doctrine DBAL Profiler for Silex",
|
||||
"keywords": [
|
||||
"dbal",
|
||||
"doctrine",
|
||||
"profiler",
|
||||
"silex"
|
||||
],
|
||||
"time": "2014-02-26 10:01:20"
|
||||
},
|
||||
{
|
||||
"name": "swftools/swftools",
|
||||
"version": "0.3.1",
|
||||
|
||||
@@ -20,6 +20,7 @@ use Alchemy\Phrasea\Core\Event\Subscriber\DebuggerSubscriber;
|
||||
use Monolog\Logger;
|
||||
use Monolog\Processor\WebProcessor;
|
||||
use Silex\Provider\WebProfilerServiceProvider;
|
||||
use Sorien\Provider\DoctrineProfilerServiceProvider;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
return call_user_func(function ($environment = PhraseaApplication::ENV_PROD) {
|
||||
@@ -61,6 +62,10 @@ return call_user_func(function ($environment = PhraseaApplication::ENV_PROD) {
|
||||
'profiler.cache_dir' => $app['root.path'] . '/tmp/cache/profiler',
|
||||
]);
|
||||
$app->mount('/_profiler', $p);
|
||||
$app->register(new DoctrineProfilerServiceProvider());
|
||||
$app['db'] = $app->share(function (PhraseaApplication $app) {
|
||||
return $app['EM']->getConnection();
|
||||
});
|
||||
}
|
||||
|
||||
$app['dispatcher'] = $app->share(
|
||||
|
||||
Reference in New Issue
Block a user