BackupsServiceProvider.php 605 B

123456789101112131415161718192021222324252627
  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\Backup\Backups;
  10. use Pimple\Container;
  11. use Pimple\ServiceProviderInterface;
  12. class BackupsServiceProvider implements ServiceProviderInterface
  13. {
  14. public function register(Container $container)
  15. {
  16. $container['backups'] = function () {
  17. $backups = new Backups();
  18. $backups->setup();
  19. return $backups;
  20. };
  21. }
  22. }