Advertisement
Guest User

Untitled

a guest
Jul 18th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. $username = "[USERNAME]";
  2. $password = "[PASSWORD]";
  3. $integrator_key = "[INTEGRATOR_KEY]";
  4. $host = "https://demo.docusign.net/restapi";
  5. $config = new Configuration(); -> en esta linea me da el fallo
  6.  
  7. "Autoload": {
  8. "Psr-4": {"": "src /"},
  9. "Classmap": ["app / AppKernel.php", "app / AppCache.php", "** src / AppBundle / juanitourquiza / pagopayphone / library" **]
  10.  
  11. composer update
  12.  
  13. //AppBundle/Services/PagotarjetaService.php
  14. <?php
  15. namespace AppBundleServices;
  16.  
  17. use BackendBundleEntityReservation;
  18. use AppBundlejuanitourquizapagopayphonelibrary;
  19.  
  20. class PagotarjetaService{
  21.  
  22. public $manager;
  23.  
  24. public function __construct($manager) {
  25. $this->manager = $manager;
  26. }
  27.  
  28. public function implementacion(){
  29. //tu codigo va aqui
  30. die("prueba");
  31. }
  32. }
  33.  
  34. //app/services.yml
  35. services:
  36. #service_name:
  37. # class: AppBundleDirectoryClassName
  38. # arguments: ['@another_service_name', 'plain_value', '%parameter_name%']
  39.  
  40. app.pagotarjeta_service:
  41. class: AppBundleServicesPagotarjetaService
  42. arguments: ["@doctrine.orm.entity_manager"]
  43.  
  44. use AppBundleServicesPagotarjetaService;
  45.  
  46. $datospago=$this->get('app.pagotarjeta_service');
  47. $datospago->implementacion();
  48.  
  49. prueba
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement