<?php

/**
 * @package    Grav\Common\GPM
 *
 * @copyright  Copyright (c) 2015 - 2024 Trilby Media, LLC. All rights reserved.
 * @license    MIT License; see LICENSE file for details.
 */

namespace Grav\Common\GPM\Local;

use Grav\Common\Grav;

/**
 * Class Plugins
 * @package Grav\Common\GPM\Local
 */
class Plugins extends AbstractPackageCollection
{
    /** @var string */
    protected $type = 'plugins';

    /**
     * Local Plugins Constructor
     */
    public function __construct()
    {
        /** @var \Grav\Common\Plugins $plugins */
        $plugins = Grav::instance()['plugins'];

        parent::__construct($plugins->all());
    }
}
