123456789101112131415161718192021222324252627282930 |
- <?php
- /**
- * @package Grav\Common\GPM
- *
- * @copyright Copyright (C) 2015 - 2019 Trilby Media, LLC. All rights reserved.
- * @license MIT License; see LICENSE file for details.
- */
- namespace Grav\Common\GPM\Remote;
- class Plugins extends AbstractPackageCollection
- {
- /**
- * @var string
- */
- protected $type = 'plugins';
- protected $repository = 'https://getgrav.org/downloads/plugins.json';
- /**
- * Local Plugins Constructor
- * @param bool $refresh
- * @param callable $callback Either a function or callback in array notation
- */
- public function __construct($refresh = false, $callback = null)
- {
- parent::__construct($this->repository, $refresh, $callback);
- }
- }
|