Guest User

Untitled

a guest
Jun 19th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. <?php
  2.  
  3. // Have this file include/do anything to set up your php codebase environment.
  4. // Expect it to run from the top of your repo, where you should start phpsh
  5. // from (or add top-of-repo-finding logic here, etc). Run ctags from the top
  6. // of your repo periodically too, to get the benefits of phpsh ctags
  7. // integration.
  8.  
  9. // You may make use of the string $___phpsh___codebase_mode which may be
  10. // specified on phpsh startup via -c. The string is '' by default.
  11.  
  12.  
  13. // E_ALL catches certain coding errors and we recommend it. Comment this out
  14. // if it produces too many warnings you don't have time to fix.
  15. // You could also try moving it to the bottom of this file, after you load your
  16. // codebase libraries, to have fewer pre-existing warnings show up, but still
  17. // get added safety in phpsh.
  18. error_reporting(E_ALL);
  19.  
  20.  
  21. switch ($___phpsh___codebase_mode) {
  22. case '':
  23. // Put default library includes here.
  24. //require_once 'relative-path-from-repo-head/lib/codebase_include.php';
  25. break;
  26.  
  27. case 'pmsipilot':
  28. require_once 'config/phpshrc.php';
  29. break;
  30.  
  31. case 'none':
  32. // Vanilla php
  33. break;
  34.  
  35. // Put any custom codebase modes here, e.g.:
  36. //case 'core':
  37. // // Would only load 'core' library includes here, perhaps for faster startup
  38. // // in a very large codebase.
  39.  
  40. default:
  41. fwrite(STDERR, 'Unknown codebase mode '.$___phpsh___codebase_mode."\n");
  42. break;
  43. }
Add Comment
Please, Sign In to add comment