03.12.2015 Views

laravel4cookbook

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

E-Commerce 277<br />

15 App::bind("billing.stripeGateway", function() {<br />

16 return new StripeGateway();<br />

17 });<br />

18<br />

19 App::bind("billing.pdfDocument", function() {<br />

20 return new PDFDocument();<br />

21 });<br />

22<br />

23 App::bind("billing.emailMessenger", function() {<br />

24 return new EmailMessenger();<br />

25 });<br />

26 }<br />

27<br />

28 public function provides()<br />

29 {<br />

30 return [<br />

31 "billing.stripeGateway",<br />

32 "billing.pdfDocument",<br />

33 "billing.emailMessenger"<br />

34 ];<br />

35 }<br />

36 }<br />

.<br />

This file should be saved as workbench/formativ/billing/src/Formativ/Billing/BillingServiceProvider.php.<br />

1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!