Use PSR-4 for plugin classes

This commit is contained in:
Matias Griese
2019-05-31 14:43:16 +03:00
parent 42d95e5fde
commit cc03729964
15 changed files with 75 additions and 79 deletions

22
classes/plugin/Themes.php Normal file
View File

@@ -0,0 +1,22 @@
<?php
namespace Grav\Plugin\Admin;
/**
* Admin theme object
*
* @author RocketTheme
* @license MIT
*/
class Themes extends \Grav\Common\Themes
{
public function init()
{
/** @var Themes $themes */
$themes = $this->grav['themes'];
$themes->configure();
$themes->initTheme();
$this->grav->fireEvent('onAdminThemeInitialized');
}
}