Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

Services.php 921B

il y a 2 ans
1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace Config;
  3. use CodeIgniter\Config\BaseService;
  4. /**
  5. * Services Configuration file.
  6. *
  7. * Services are simply other classes/libraries that the system uses
  8. * to do its job. This is used by CodeIgniter to allow the core of the
  9. * framework to be swapped out easily without affecting the usage within
  10. * the rest of your application.
  11. *
  12. * This file holds any application-specific services, or service overrides
  13. * that you might need. An example has been included with the general
  14. * method format you should use for your service methods. For more examples,
  15. * see the core Services file at system/Config/Services.php.
  16. */
  17. class Services extends BaseService
  18. {
  19. /*
  20. * public static function example($getShared = true)
  21. * {
  22. * if ($getShared) {
  23. * return static::getSharedInstance('example');
  24. * }
  25. *
  26. * return new \CodeIgniter\Example();
  27. * }
  28. */
  29. }