Skip to content

unable to add symfony service as a volume driver #79

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
linasm83 opened this issue Nov 2, 2014 · 1 comment
Closed

unable to add symfony service as a volume driver #79

linasm83 opened this issue Nov 2, 2014 · 1 comment

Comments

@linasm83
Copy link

linasm83 commented Nov 2, 2014

Hi,

My config:

fm_elfinder:
    instances:
        default_phpcr:
            connector:
                roots:
                    media:
                        driver: cmf_media.adapter.elfinder.phpcr_driver

Getting the error:

[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]                                                                                             
  Invalid configuration for path "fm_elfinder.instances.default_phpcr.connector.roots.media.driver": Invalid filesystem driver ""cmf_media.adapter.elfinder.phpcr_driver"" 

So it looks like it doesn't pass configuration validation in DependencyInjection\Configuration:

->scalarNode('driver')
    ->isRequired()
    ->validate()
    ->ifNotInArray(array('LocalFileSystem', 'FTP', 'FTPIIS', 'Dropbox', 'S3'))
       ->thenInvalid('Invalid filesystem driver "%s"')
    ->end()

If i'm not missing something then there's no way to implement custom driver at the moment until this validation exists or it is not altered in some way (issue exists only in version 2.*)

@linasm83
Copy link
Author

linasm83 commented Nov 2, 2014

Sorry missed that already is a featured request there #66

@linasm83 linasm83 closed this as completed Nov 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant