Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. |- src
  2. |-- PcMagas
  3. |---- Dropbox.php
  4. |---- DropBoxFactory.php
  5. |- web
  6. |-- index.php
  7.  
  8. "autoload": {
  9. "psr-4":{
  10. "": "src/"
  11. }
  12. }
  13.  
  14. namespace PCMagas;
  15.  
  16. use GuzzleHttpClient;
  17. use PCMagasExceptionsFileNotFoundException;
  18.  
  19. class DropboxFactory
  20. {
  21. public static function fomeFunc()
  22. {
  23. //Do stuff
  24. }
  25. }
  26.  
  27. require_once __DIR__ . '/../vendor/autoload.php';
  28. use PCMagasDropboxFactory;
  29. DropboxFactory::fomeFunc();
  30.  
  31. composer dump-autoload -o
  32. cd ^project_root^
  33. php -S localhost:8990
  34.  
  35. vagrant ssh
  36.  
  37. cd ~/code
  38. composer dump-autoload -o
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement