1

I'm using Symfony 2.3, FMElfinderBundle and FOSUserBundle. Both bundles works fine. My question relates to how to connect both bundles. When user register then I want to create directory for him and tell FMElfinderBundle to use that directory for that user. Another user will have another directory etc.

I know that FMElfinderBundle can have multiple roots in config.yml

fm_elfinder:
    locale: %locale%
    editor: ckeditor # other choices are tinymce or simple
    showhidden: false # defaults to false
    fullscreen: true # defaults true, applies to simple and ckeditor editors
    connector:
        debug: false # defaults to false
        roots:       # at least one root must be defined
            uploads:
                driver: LocalFileSystem
                path: uploads
                upload_allow: ['image/png', 'image/jpg', 'image/jpeg']
                upload_deny: ['all']
                upload_max_size: 2M

How can I dynamically assign users to directories with all permissions? Any idea? What is the best solution for that? Maybe another file manager?

4

1 回答 1

0

答案可能为时已晚,但迟到总比没有好:),并且可能在这里发布答案,也会对其他人有所帮助。您可以检查 bundle 的 2.0 分支以获得基本的用户集成,或者使用自己的逻辑覆盖配置服务,以提供特定的、用户依赖的(而不仅仅是)bundle 配置。

于 2014-05-02T11:41:51.750 回答