protected function registerConfig($env)
{
$this['env'] = $env;
$this['app.root_dir'] = realpath(__DIR__ . '/../..');
$this['app.cache_dir'] = $this['app.root_dir'] . '/cache';
$this['app.bin_dir'] = $this['app.root_dir'] . '/vendor/composer/satis/bin';
$this['app.config_dir'] = $this['app.root_dir'] . '/config';
$this['app.components_dir'] = $this['app.root_dir'] . '/bower_components';
$this['app.data_dir'] = $this['app.root_dir'] . '/data';
$this['app.logs_dir'] = $this['app.root_dir'] . '/logs';
$this['app.resources_dir'] = $this['app.root_dir'] . '/resources';
$this['app.web_dir'] = $this['app.root_dir'] . '/web';
$this['app.users_file'] = $this['app.config_dir'] . '/users.json';
require sprintf('%s/%s.php', $this['app.config_dir'], $env);
}