class OfferController extends AbstractController

Offer Controller class

Properties

private GiftVoucherPurchasedServiceInterface $giftVoucherPurchasedService Stores GiftVoucherPurchasedServiceInterface
private GiftVoucherPaymentInterface $giftVoucherPayment Stores GiftVoucherPaymentInterface
private ServiceSlugInterface $serviceSlug Stores ServiceSlugInterface
private ServiceToolsInterface $serviceTools Stores ServiceToolsInterface

Methods

__construct(GiftVoucherPurchasedServiceInterface $giftVoucherPurchasedService, GiftVoucherPaymentInterface $giftVoucherPayment, ServiceSlugInterface $serviceSlug, ServiceToolsInterface $serviceTools)

No description

Response
offerAll()

Displays all the GiftVoucherAvailable that can be offered

Redirect
offerIdRedirect(GiftVoucherAvailable $giftVoucherAvailable)

Redirects to the Route containing slug to display the specific GiftVoucherAvailable offer

Response
offer(Request $request, GiftVoucherAvailable $giftVoucherAvailable, ConfigServiceInterface $configService, $slug)

Displays the specific GiftVoucherAvailable offer

Details

at line 54
__construct(GiftVoucherPurchasedServiceInterface $giftVoucherPurchasedService, GiftVoucherPaymentInterface $giftVoucherPayment, ServiceSlugInterface $serviceSlug, ServiceToolsInterface $serviceTools)

Parameters

GiftVoucherPurchasedServiceInterface $giftVoucherPurchasedService
GiftVoucherPaymentInterface $giftVoucherPayment
ServiceSlugInterface $serviceSlug
ServiceToolsInterface $serviceTools

at line 75
Response offerAll()

Displays all the GiftVoucherAvailable that can be offered

Return Value

Response

at line 100
Redirect offerIdRedirect(GiftVoucherAvailable $giftVoucherAvailable)

Redirects to the Route containing slug to display the specific GiftVoucherAvailable offer

Parameters

GiftVoucherAvailable $giftVoucherAvailable

Return Value

Redirect

at line 124
Response offer(Request $request, GiftVoucherAvailable $giftVoucherAvailable, ConfigServiceInterface $configService, $slug)

Displays the specific GiftVoucherAvailable offer

Parameters

Request $request
GiftVoucherAvailable $giftVoucherAvailable
ConfigServiceInterface $configService
$slug

Return Value

Response

Exceptions

NotFoundHttpException