Giter Site home page Giter Site logo

Comments (7)

rande avatar rande commented on August 16, 2024

The dependency is optional: https://github.com/sonata-project/SonataBlockBundle/blob/master/composer.json#L30-L34

from sonatablockbundle.

gondo avatar gondo commented on August 16, 2024

well what about this https://github.com/sonata-project/SonataBlockBundle/blob/master/composer.json#L28 ?

from sonatablockbundle.

gondo avatar gondo commented on August 16, 2024

also there are use statements all over the code linking to AdminBundle https://github.com/sonata-project/SonataBlockBundle/search?q=Admin

from sonatablockbundle.

gondo avatar gondo commented on August 16, 2024

funny enough search for AdminBundle doesn't show anything. i have no idea how github search works. https://github.com/sonata-project/SonataBlockBundle/search?q=AdminBundle

from sonatablockbundle.

rande avatar rande commented on August 16, 2024

require-dev is used for unit testing, if you develop a project with stability=dev then you will have the dependency. So use stable version ...

You can have a use statement on non existent class, this is valid as long as you don't call a method with a type hinting on this method.

from sonatablockbundle.

Miliooo avatar Miliooo commented on August 16, 2024

I'm also strongly considering trying out this bundle in a project after seeing http://www.slideshare.net/th0masr/sonata-block-bundle-sfpot-march-2014.

But I'm not sure how easy it will be to workaround the fact that the

  • BlockServiceManagerInterface and the
  • BaseBlockService

both have methods that require the sonata admin bundle.
As can be seen in https://github.com/sonata-project/SonataBlockBundle/search?p=2&q=Admin

I haven't even tried the bundle so I'm not even sure it will be an issue at all... I just agree with gondo that this bundle should not depend on the adminbundle. Not being able to call methods in an interface because they require an optional bundle is not ideal.

from sonatablockbundle.

rande avatar rande commented on August 16, 2024

Methods are not used if the AdminBundle is not present. So what's is the problem ?

from sonatablockbundle.

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.