non-existent service "cmf_create.rdf_type_factory"
montabou opened this issue · 3 comments
I've just installed "symfony-cmf/create-bundle": "*@dev"
without all symfony-cmf stuff but when I try to configure it using http://symfony.com/doc/master/cmf/bundles/create.html
I've got this error:
The service "cmf_create.twig_extension" has a dependency on a non-existent service "cmf_create.rdf_type_factory".
I did not find infos about this service in the doc.
i quickly grepped through the bundle: the service is defined in the phpcr persistence configuration. if you want to use create with phpcr, you need to configure persistence.phpcr.enabled: true . if you want something else, you will have to dig into createphp and the bundle a bit to add your own type factory implementation as this thing depends on the storage layer. afaik there are some doctrine base classes but only phpcr concrete classes.
a pull request to support orm would be very welcome - you will need some creative handling for the unique id however, as the backend must be able to load a content class (document/entity) just from that id, there is no separate table name as usually needed for doctrine orm. you would need some special id that helps you find the right table...
Arf...Thanks
cmf_create.persistence.phpcr.enabled: true
was present above in the doc and it fixes the error message.
I will try to use createphp without phpcr and so without symfony-cmf/create-bundle for now :-(
I'm not confortable for now to think about trying to propose a PR, too difficult for me.
please share when you have code for persisting non-phpcr documents.
for the bundle, you should be able to use it without phpcr, you just need to define this service in your application so that it exists.