ErrorServiceProvider.php 489 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * @package Grav\Common\Service
  4. *
  5. * @copyright Copyright (C) 2015 - 2019 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. class ErrorServiceProvider implements ServiceProviderInterface
  13. {
  14. public function register(Container $container)
  15. {
  16. $container['errors'] = new Errors;
  17. }
  18. }