public function register(Container $app)
    {
        $configDirectories = [$app['app.config.dir']];
        $locator = new FileLocator($configDirectories);

        // Loads routes files
        $app['config.loader'] = function ($app) use ($locator) {
            // load only *.yml files?
            $loader =  new YamlFileLoader($locator);
            return $loader;
        };

        // Finds files or directories
        $app['config.finder'] = function () {
            return new Finder();
        };

        // Parses yaml files
        $app['config.parser'] = function () {
            return new Parser();
        };
    }
public function register(Container $app)
    {
        $configDirectories = [$app['app.config.dir']];
        $locator = new FileLocator($configDirectories);

        // Loads routes files
        $app['config.loader'] = function ($app) use ($locator) {
            // load only *.yml files?
            $loader =  new YamlFileLoader($locator);
            return $loader;
        };

        // Finds files or directories
        $app['config.finder'] = function () {
            return new Finder();
        };

        // Parses yaml files
        $app['config.parser'] = function () {
            return new Parser();
        };
    }
{@inheritdoc}