mirror of
https://github.com/getgrav/grav.git
synced 2026-07-05 05:18:36 +02:00
Fixed static method call for all in GPM Plugins
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
<?php
|
||||
namespace Grav\Common\GPM\Local;
|
||||
|
||||
class Plugins extends Collection {
|
||||
class Plugins extends Collection
|
||||
{
|
||||
private $type = 'plugins';
|
||||
public function __construct() {
|
||||
public function __construct()
|
||||
{
|
||||
$grav = self::$grav;
|
||||
$grav['plugins']->init();
|
||||
|
||||
foreach ($grav['plugins']::all() as $name => $data) {
|
||||
foreach ($grav['plugins']->all() as $name => $data) {
|
||||
$this->items[$name] = new Package($data, $this->type);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user