Services.php 928 B

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