for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TestRabbitMq;
use Pimple\Container;
use Pimple\ServiceProviderInterface;
/**
* Configuration principale de l'application
*/
class Config implements ServiceProviderInterface
{
* @params string $env
public function __construct()
if (true === file_exists(__DIR__ . "/env/testing.php")) {
require_once __DIR__ . "/env/testing.php";
}
* @{inherit doc}
public function register(Container $app)
$this->registerEnvironmentParams($app);
$app->register(new EtnaConfig());
* Set up environmental variables
*
* If development environment, set xdebug to display all the things
* @param Container $app Pimple Container
private function registerEnvironmentParams(Container $app)
$app['application_name'] = 'test_rabbitmq';
$app['application_env'] = 'testing';
$app['application_path'] = realpath(__DIR__ . "/../");
$app['application_namespace'] = __NAMESPACE__;
ini_set('display_errors', true);
ini_set('xdebug.var_display_max_depth', 100);
ini_set('xdebug.var_display_max_children', 100);
ini_set('xdebug.var_display_max_data', 100);
error_reporting(E_ALL);
$app["debug"] = true;