You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to symfony-...@googlegroups.com
Hello, I'm using the
resource-bundle of Symfony CMF.
How can I configure the service "cmf_resource.registry.container"
to pass serviceMap in constructor?
I have imported in app/routing.yml: _cmf_resource_rest: Resource:
@CmfResourceRestBundle/Resources/config/routing.yml
that imports the following route: _cmf_resource: pattern: /api/RepositoryName{}/{path} requirements: path:. * defaults: _controller: cmf_resource_rest.controller.resource:
resourceAction _format: json that is invoked in the template of tree.html.twigSonataDoctrinePHPCRAdminBundle.
But I get an exception: "Repository with alias \" default \ "has not Been registered,
registered aliases: \" \ "
the method getRepositoryServiceId() class ContainerRepositoryRegistry.
How can I set the serviceMap? Where am I wrong?
Thank you in advance,
Marco
Daniel Leech
unread,
Aug 18, 2015, 3:43:21 PM8/18/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to symfony-...@googlegroups.com
Hi Marco,
The bundles dependency injection configuration takes care of injecting
the service map:
But I am not sure this is related to your problem. You need to define a
repository with the alias "default" (I am not sure if the bundle should
somehow take care of this automatically).
See the functional tests for an example configuration: