public function register(Container $container)
    {
        $container['spot2.connections']         = [];
        $container['spot2.connections.default'] = null;
        $container['spot2.config'] = function (Container $container) {
            $config = new Config();
            foreach ($container['spot2.connections'] as $name => $data) {
                $default = ($container['spot2.connections.default'] === $name) ? true : false ;
                $config->addConnection($name, $data, $default);
            }

            return $config;
        };
        $container['spot2.locator'] = function (Container $container) {
            return new Locator($container['spot2.config']);
        };
    }