src/ContainerProvider.php
protected function registerFormats(Container $container)
    {
        foreach ($this->formats as $formatClass) {
            $container['format.'.$formatClass::getName()] = $container->factory(function() use ($formatClass) {
                return new $formatClass();
            });
        }
    }
protected function registerFormats(Container $container)
    {
        foreach ($this->formats as $formatClass) {
            $container['format.'.$formatClass::getName()] = $container->factory(function() use ($formatClass) {
                return new $formatClass();
            });
        }
    }
protected function registerFormats ( Container $ container ) { foreach ( $ this -> formats as $ formatClass ) { $ container [ 'format.' . $ formatClass :: getName ( ) ] = $ container -> factory ( function ( ) use ( $ formatClass ) { return new $ formatClass ( ) ; } ) ; } }
Registers the formats.
@param Container $container Container
Registers the formats .