Closed DougHayward closed 10 years ago
You need install "jms/serializer-bundle": "~0.11" and add following:
// in AppKernel::registerBundles() $bundles = array( // ... new JMS\SerializerBundle\JMSSerializerBundle(), // ... );
Have changed it from dev-master to ~0.11 but no change in error...
Updating dependencies (including require-dev)
- Updating jms/serializer-bundle (dev-master ca66cd3 => 0.13.0)
Checking out bb15db3e661168f4310fad48b86915ff1ca33795
Writing lock file
Generating autoload files
Updating the "app/config/parameters.yml" file
[Symfony\Component\DependencyInjection\Exception\ServiceNotFoundExcepton] The service "sonata.classification.api.form.type.category" has a dependency on a non-existent service "jms_serializer.metadata_factory".
Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-update-cmd event terminated with an exception
[RuntimeException]
An error occurred when executing the ""cache:clear --no-warmup"" command.
Flipping heck... can't believe I've looked pretty much everywhere before asking this question... except in my own ****ing Kernel (have been spoilt up to yet with the app_kernel being auto updated)... sorry to have wasted everyone's time. Fixed now. Thank-you.
This dependency should be stated in the docs: http://sonata-project.org/bundles/media/master/doc/reference/installation.html#id1
Though it mentions:
This bundle is mainly dependant of the SonataAdminBundle and the SonataDoctrineORMAdminBundle or SonataDoctrineMongoDBAdminBundle. So be sure you have installed those two bundles before starting.
I don't think the other bundles require JMSSerializerBundle
, correct?
Come on guys, if this is a real dependency, why it's not included?! I've stumbled upon this for a third time, and I keep forgetting it! And the issue is STILL relevant!
Completely agree with @webdevilopers and @fourpixels, if it's a real dependency, please include it in the docs.
Could you submit a PR to the docs? Quite easy to do, feel free :)
https://github.com/sonata-project/SonataMediaBundle/pull/676/files
Correction added
Why is this still not pulled to the official docs on site?
It getting really annoying with all the outdated docs out there.
@krewetka the documentation has been updated, just wait for the CDN to flush its content: http://sonata-project.org/bundles/media/master/doc/reference/installation.html
@rande this is missing in the classification bundle.
The link you added is from the SonataMediaBundle, which indeed needs the classification bundle, but if you first setup the classification bundle you'll stumble upon this....
Updated my project via "composer update" yesterday now I am getting the following error:
Have looked all over and can't seem to find a fix.
My current composer file looks like this...
Please help :)