Plugins.php 727 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * @package Grav\Common\GPM
  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\GPM\Remote;
  9. class Plugins extends AbstractPackageCollection
  10. {
  11. /**
  12. * @var string
  13. */
  14. protected $type = 'plugins';
  15. protected $repository = 'https://getgrav.org/downloads/plugins.json';
  16. /**
  17. * Local Plugins Constructor
  18. * @param bool $refresh
  19. * @param callable $callback Either a function or callback in array notation
  20. */
  21. public function __construct($refresh = false, $callback = null)
  22. {
  23. parent::__construct($this->repository, $refresh, $callback);
  24. }
  25. }