Code Monkey home page Code Monkey logo

Comments (6)

rmsint avatar rmsint commented on July 28, 2024

Do we want to keep this as it currently is for a 1.0 release?

from media-bundle.

dbu avatar dbu commented on July 28, 2024

for gaufrette i would move the whole method to the phpcr specific class.

for imagine i guess we can leave as is and refactor when we implement orm. or we could make that class phpcr specific too.

from media-bundle.

rmsint avatar rmsint commented on July 28, 2024

Related to this is the use of getPath, we removed it from the interfaces. So the code relying on it should also be removed:

  • AbstractCmfMediaDoctrine::getFilePath
  • ImagineCacheInvalidatorSubscriber::getFilePath
  • MediaHelper::downloadUrl

from media-bundle.

dbu avatar dbu commented on July 28, 2024
  • AbstractCmfMediaDoctrine::getFilePath

we should keep an abstract method and push the impl to phpcr only

  • ImagineCacheInvalidatorSubscriber::getFilePath

should that be called PhpcrImagineCacheInvalidatorSubscriber ?

  • MediaHelper::downloadUrl

i guess PhpcrMediaHelper again.

or do we need a MediaHelperInterface that we can inject into all the
above classes that can give filesystem and download paths and we inject
that into the services instead of making them abstract? depends if they
have other storage specific tasks.

from media-bundle.

rmsint avatar rmsint commented on July 28, 2024

I think we have to check the best implementation when integrating SonataMedia so that it stays in sync and also think an ORM implementation through.

from media-bundle.

rmsint avatar rmsint commented on July 28, 2024

Closed by #25

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.