hackzilla-project / TicketBundle

Bundle provides multilingual ticketing functionality for Symfony applications.
http://hackzilla.org
MIT License
64 stars 43 forks source link

ParameterNotFoundException: hackzilla_ticket.user_bridge.clas #33

Closed assada closed 9 years ago

assada commented 9 years ago

Jast after instalation bundle:

ParameterNotFoundException: The service "hackzilla_ticket.user" has a dependency on a non-existent parameter "hackzilla_ticket.user_bridge.class". Did you mean one of these: "hackzilla_ticket.user_load.class", "hackzilla_ticket.twig_user.class", "hackzilla_ticket.ticket_manager.class"?

vendor/hackzilla/ticket-bundle/Resources/config/services.yml

....
hackzilla_ticket.user:
        class: %hackzilla_ticket.user_bridge.class%
        arguments: ['@service_container']
....

but parameters(in this services.yml):

parameters:
    hackzilla_ticket.user_load.class: Hackzilla\Bundle\TicketBundle\EventListener\UserLoad
    hackzilla_ticket.twig_user.class: Hackzilla\Bundle\TicketBundle\Extension\UserExtension
    hackzilla_ticket.ticket_manager.class: Hackzilla\Bundle\TicketBundle\Manager\TicketManager

services:
....

where is _%hackzilla_ticket.userbridge.class% param?

after this dedective i`m install yours FOSUserBridge

composer require hackzilla/fosuser-bridge-bundle

and add param in vendor/hackzilla/ticket-bundle/Resources/config/services.yml

hackzilla_ticket.user_bridge.class: Hackzilla\Bundle\FOSUserBridgeBundle\User\FOSUser

and all works fine! Image of Yaktocat

hackzilla commented 9 years ago

Interesting. Which version of the ticket-bundle are you installing?

dev-master is moving away from fosuser-bridge-bundle and moving it all inside the bundle

hackzilla commented 9 years ago

If you are using 0.9.x, then the documentation is here:

https://github.com/hackzilla/TicketBundle/tree/0.9.x