選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

33 行
921B

  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. }