phpnotify.php 636 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace phpnotify;
  3. /**
  4. * This function load file with given name.
  5. *
  6. * @param string $name Name of the file to load.
  7. */
  8. function load(string $name): void {
  9. $directory = dirname(__FILE__);
  10. $file = $directory.'/'.$name;
  11. require_once($file);
  12. }
  13. /**
  14. * Order of that file depends on classes hierarchy.
  15. */
  16. load('response.php');
  17. load('fetch.php');
  18. load('authorization_method.php');
  19. load('empty_authorization.php');
  20. load('login_authorization.php');
  21. load('token_authorization.php');
  22. load('authorization_store.php');
  23. load('notifier.php');
  24. load('subject.php');
  25. load('notification_base.php');
  26. load('notification.php');