ErrorServiceProvider.php 630 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * @package Grav\Common\Service
  4. *
  5. * @copyright Copyright (c) 2015 - 2022 Trilby Media, LLC. All rights reserved.
  6. * @license MIT License; see LICENSE file for details.
  7. */
  8. namespace Grav\Common\Service;
  9. use Grav\Common\Errors\Errors;
  10. use Pimple\Container;
  11. use Pimple\ServiceProviderInterface;
  12. /**
  13. * Class ErrorServiceProvider
  14. * @package Grav\Common\Service
  15. */
  16. class ErrorServiceProvider implements ServiceProviderInterface
  17. {
  18. /**
  19. * @param Container $container
  20. * @return void
  21. */
  22. public function register(Container $container)
  23. {
  24. $container['errors'] = new Errors;
  25. }
  26. }