Comments (7)
The dependency is optional: https://github.com/sonata-project/SonataBlockBundle/blob/master/composer.json#L30-L34
from sonatablockbundle.
well what about this https://github.com/sonata-project/SonataBlockBundle/blob/master/composer.json#L28 ?
from sonatablockbundle.
also there are use
statements all over the code linking to AdminBundle https://github.com/sonata-project/SonataBlockBundle/search?q=Admin
from sonatablockbundle.
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.
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.
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.
Methods are not used if the AdminBundle is not present. So what's is the problem ?
from sonatablockbundle.
Related Issues (20)
- Bug in (lazy-loading) group property on validator component HOT 1
- sonata-project/cache abandoned but still required HOT 2
- Add tag `sonata.block` to services implementing `BlockServiceInterface` HOT 1
- Sonata Block Bundle Edit form dont save EntityType HOT 1
- Remove Sonata cache HOT 3
- Problem to use the last version 4.17 HOT 2
- Deprecate ContainerBlockService on 4.x HOT 3
- Dependency SonataCache abandoned HOT 1
- With a twig error, blocks profiler KO Notice: unserialize(): Error at offset HOT 5
- Create `UPGRADE-4.0.md` HOT 4
- Remove Sonata Cache HOT 9
- Can't install block bundle on symfony 4.3 HOT 3
- Make BlockExtension a lazy extension HOT 1
- Upgrade block-bundle to 4.x in sonata-project bundles HOT 5
- Return only string in BlockContextInterface::getTemplate HOT 4
- Saving a block assign the wrong template to that block
- Saving a child block assign the wrong type to that block (breaking the page composer forever)
- Use a service locator for `BlockServiceManager` HOT 3
- BlockBundle navigation menu is incorrectly duplicated to TimelineBundle navigation menu HOT 1
- Not enough information about User Deprecated: sonata-project/block-bundle HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sonatablockbundle.