Code Monkey home page Code Monkey logo

Comments (7)

webberig avatar webberig commented on July 28, 2024

The reason why this fails is because my app can't seem to find a service called "cmf_media.adapter.elfinder.phpcr_driver".

I performed a search in the code, and I found the definition of this service in vendor\symfony-cmf\media-bundle\Symfony\Cmf\Bundle\MediaBundle\Resources\config\adapter-elfinder-phpcr.xml

I suppose I need to include this in my config.yml, but I don't know how. Also, there's no mention of this in the documentation!

from media-bundle.

webberig avatar webberig commented on July 28, 2024

OK, I found it!

It appears that phpcr is disabled by default in the configuration. And the service I mentioned in the previous comment only gets added if PHPCR is enabled. I had to add this to my configuration:

cmf_media:
    persistence:
        phpcr:
            enabled: true

Should phpcr be disabled by default in this bundle ? And shouldn't the elfinder adapter be loaded even when phpcr is disabled ? Either way, someone might want to take a look at the documentation on this topic!

from media-bundle.

rmsint avatar rmsint commented on July 28, 2024

Great you got it running! Imho the answers to your questions are no and no :-)

The bundle is build to be used with several persistance layers, currently only phpcr is implemented. Therefore by default phpcr is not enabled. The elfinder adapter that is included is only for phpcr and will only be loaded if phpcr is loaded as you experienced. I think that if you have the CmfCoreBundle installed it will enable phpcr automatically for the MediaBundle. It should also be mentioned somewhere in the documentation.

Maybe you can do a PR to improve the docs?

from media-bundle.

webberig avatar webberig commented on July 28, 2024

Gladly, but I've only started to get this to work... It's hard to document
something if you're just beginning to comprehend how it works...

Op zaterdag 28 december 2013 schreef Roel Sint ([email protected]):

Great you got it running! Imho the answers to your questions are no and no
:-)

The bundle is build to be used with several persistance layers, currently
only phpcr is implemented. Therefore by default phpcr is not enabled. The
elfinder adapter that is included is only for phpcr and will only be loaded
if phpcr is loaded as you experienced. I think that if you have the
CmfCoreBundle installed it will enable phpcr automatically for the
MediaBundle. It should also be mentioned somewhere in the documentation.

Maybe you can do a PR to improve the docs?


Reply to this email directly or view it on GitHubhttps://github.com//issues/88#issuecomment-31303979
.

from media-bundle.

dbu avatar dbu commented on July 28, 2024

i think a line in point 2. of the linked doc page would be enough. something like

.. note::

    Specify the storage driver to use for elfinder. For now there is only support for PHPCR, meaning you need to set up the PHPCR storage.

from media-bundle.

webberig avatar webberig commented on July 28, 2024

I don't think that's clear enough. Phpcr is currently the only supported storage driver, and it's turned off by default. So... you need to enable it to make the bundle do anything. That's a pretty important step in the installation!

I think you should add a configuration step in these installation instructions.

btw @dbu: See you soon at the PHP conference in Antwerp (I'll be in the CMF session). Hopefully we can meet in person and have a beer! :-)

from media-bundle.

dbu avatar dbu commented on July 28, 2024

see symfony-cmf/symfony-cmf-docs#440 - glad for input

from media-bundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.