Code Monkey home page Code Monkey logo

Comments (5)

rmsint avatar rmsint commented on July 28, 2024

How are they PHPCR-ODM specific? As far as I see all persistance layer specific things are injected and only need to be changed using a different configuration. The config for phpcr is done in persistance-phpcr.xml, for orm it can be done in persistance-orm.xml, or not?

from media-bundle.

dantleech avatar dantleech commented on July 28, 2024

Up, yeah I can see now that the classes are only Doctrine specific (will we ever have Propel or "X" support?).

The reason I raised the ticket was because I saw that the cmf_media.upload_file_helper service is phpcr specific, why is the manager class called cmf_media.persistence.phpcr.manager but the upload file helper is only called cmf_media.upload_file_helper?

from media-bundle.

rmsint avatar rmsint commented on July 28, 2024

Ah I see, good point about Propel or "X" support. I guess we then need to update several bundles as we use the Doctrine specific logic also in other bundles the same way.

The reason to name it cmf_media.upload_file_helper and not cmf_media.persistance.phpcr.upload_file_helper is that we then could use the service regardless of needing to know what persistence type it is. What we know is that there always is one cmf_media.upload_file_helper. We use it also this way in the CreateBundle. We also could name it cmf_media.persistance.phpcr.upload_file_helper and add an alias cmf_media.upload_file_helper to achieve the same.

from media-bundle.

dbu avatar dbu commented on July 28, 2024

+1 about the service + alias thing.
if the helper class is doctrine specific, we could put the code into the Doctrine namespace but not Doctrine\Phpcr. or call it DoctrineUploadFileHelper.

@rmsint can you do that by monday?

from media-bundle.

rmsint avatar rmsint commented on July 28, 2024

ok, will do

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.