Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

non-existent service "cmf_create.rdf_type_factory" #83

Closed
montabou opened this issue Oct 9, 2013 · 3 comments
Closed

non-existent service "cmf_create.rdf_type_factory" #83

montabou opened this issue Oct 9, 2013 · 3 comments

Comments

@montabou
Copy link

montabou commented Oct 9, 2013

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.

@dbu
Copy link
Member

dbu commented Oct 9, 2013

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...

@montabou
Copy link
Author

montabou commented Oct 9, 2013

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.

@montabou montabou closed this as completed Oct 9, 2013
@dbu
Copy link
Member

dbu commented Oct 9, 2013

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants