1up-lab / OneupFlysystemBundle

A Flysystem integration for your Symfony projects.
MIT License
634 stars 118 forks source link

Add the ability to disable asserts #139

Closed bilel-noomene closed 7 years ago

bilel-noomene commented 7 years ago

I don't see any method to configure the disable_asserts parameter. The only parameter that can be passed to the Filesystem configuration is visibility.

        $options = [];
        if (array_key_exists('visibility', $config)) {
            $options['visibility'] = $config['visibility'];
        }

        $container
            ->setDefinition($id, new DefinitionDecorator('oneup_flysystem.filesystem'))
            ->replaceArgument(0, new Reference($cache ? $adapter.'_cached' : $adapter))
            ->replaceArgument(1, $options)
            ->addTag('oneup_flysystem.filesystem', $tagParams);

Thanks.

bytehead commented 7 years ago

See PR #140. Will be merged soon.

bilel-noomene commented 7 years ago

thanks

bytehead commented 7 years ago

Implemented via d6f8821ccf173f171dd76258bda3abafd218f0af. Check new release 1.13.0.