public static function getDefaultLoaders(LoaderInterface $fileLoader = null): array
    {
        $loaders = [
            'dir' => new Loader\DirLoader(),
            'ini' => new Loader\IniLoader(),
            'json' => new Loader\JsonLoader(),
            'yaml' => function_exists('yaml_parse') ? new Loader\YamlLoader() : new Loader\YamlSymfonyLoader(),
            'env' => new Loader\EnvLoader(),
            'Aws\DynamoDb\DynamoDbClient' => new Loader\DynamoDBLoader()
        ];

        $loaders['yml'] = $loaders['yaml'];

        if (isset($fileLoader)) {
            $loaders['dir']->setFileLoader($fileLoader);
        }

        return $loaders;
    }
public static function getDefaultLoaders(LoaderInterface $fileLoader = null): array
    {
        $loaders = [
            'dir' => new Loader\DirLoader(),
            'ini' => new Loader\IniLoader(),
            'json' => new Loader\JsonLoader(),
            'yaml' => function_exists('yaml_parse') ? new Loader\YamlLoader() : new Loader\YamlSymfonyLoader(),
            'env' => new Loader\EnvLoader(),
            'Aws\DynamoDb\DynamoDbClient' => new Loader\DynamoDBLoader()
        ];

        $loaders['yml'] = $loaders['yaml'];

        if (isset($fileLoader)) {
            $loaders['dir']->setFileLoader($fileLoader);
        }

        return $loaders;
    }
public static function getDefaultLoaders ( LoaderInterface $ fileLoader = null ) : array { $ loaders = [ 'dir' => new Loader \ DirLoader ( ) , 'ini' => new Loader \ IniLoader ( ) , 'json' => new Loader \ JsonLoader ( ) , 'yaml' => function_exists ( 'yaml_parse' ) ? new Loader \ YamlLoader ( ) : new Loader \ YamlSymfonyLoader ( ) , 'env' => new Loader \ EnvLoader ( ) , 'Aws\DynamoDb\DynamoDbClient' => new Loader \ DynamoDBLoader ( ) ] ; $ loaders [ 'yml' ] = $ loaders [ 'yaml' ] ; if ( isset ( $ fileLoader ) ) { $ loaders [ 'dir' ] -> setFileLoader ( $ fileLoader ) ; } return $ loaders ; }
Get the default loaders.

@param LoaderInterface $fileLoader
@return LoaderInterface[]
Get the default loaders .