Skip to content

Commit

Permalink
Fix PaylineController not being callable
Browse files Browse the repository at this point in the history
 #SymfonyHackday
  • Loading branch information
lolautruche committed Nov 23, 2019
1 parent a891d5f commit 1f6bf28
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Resources/config/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@ services:
Lolautruche\PaylineBundle\Payline\WebGatewayInterface: '@Lolautruche\PaylineBundle\Payline\Payline'

Lolautruche\PaylineBundle\Controller\PaylineController:
$defaultConfirmationUrl: "@=service('router').generate(parameter('lolautruche_payline.default_confirmation_route'), [], 0)"
$defaultErrorUrl: "@=service('router').generate(parameter('lolautruche_payline.default_error_route'), [], 0)"
arguments:
$defaultConfirmationUrl: "@=service('router').generate(parameter('lolautruche_payline.default_confirmation_route'), [], 0)"
$defaultErrorUrl: "@=service('router').generate(parameter('lolautruche_payline.default_error_route'), [], 0)"
tags:
- { name: controller.service_arguments }

lolautruche_payline.controller: '@Lolautruche\PaylineBundle\Controller\PaylineController'
lolautruche_payline.controller:
alias: Lolautruche\PaylineBundle\Controller\PaylineController
public: true

0 comments on commit 1f6bf28

Please sign in to comment.