diff --git a/.gitignore b/.gitignore index ac144ce26c..7246930b58 100644 --- a/.gitignore +++ b/.gitignore @@ -65,3 +65,5 @@ behat.yml # Exclude jison files grammar/query.js grammar/jison-* + +pimple.json diff --git a/composer.json b/composer.json index a928a76235..ec712af4dc 100644 --- a/composer.json +++ b/composer.json @@ -89,6 +89,7 @@ "simple-bus/message-bus": "^2.1", "simple-bus/serialization": "^2.0", "sorien/silex-dbal-profiler": "~1.0.0", + "sorien/silex-pimple-dumper": "^1.0", "swiftmailer/swiftmailer": "~5.3.0", "symfony/symfony": "~2.4", "themattharris/tmhoauth": "~0.7", diff --git a/lib/Alchemy/Phrasea/Application.php b/lib/Alchemy/Phrasea/Application.php index 14ac3b9bfe..88f101034a 100644 --- a/lib/Alchemy/Phrasea/Application.php +++ b/lib/Alchemy/Phrasea/Application.php @@ -117,6 +117,7 @@ use Silex\Provider\SwiftmailerServiceProvider; use Silex\Provider\TwigServiceProvider; use Silex\Provider\UrlGeneratorServiceProvider; use Silex\Provider\ValidatorServiceProvider; +use Sorien\Provider\PimpleDumpProvider; use Symfony\Bridge\Twig\Extension\TranslationExtension; use Symfony\Component\Form\Exception\FormException; use Symfony\Component\Form\FormBuilderInterface; @@ -176,6 +177,7 @@ class Application extends SilexApplication ini_set('log_errors', 'on'); ini_set('error_log', $this['root.path'].'/logs/php_error.log'); } + $this->register(new PimpleDumpProvider()); $this->register(new ConfigurationServiceProvider()); $this->register(new MonologServiceProvider());