1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-10 23:24:07 +02:00

#431 general structure changes

This commit is contained in:
Awilum
2018-03-05 00:22:55 +03:00
parent a616757ee0
commit 0b94ad6d1e
19 changed files with 390 additions and 833 deletions

31
monstra/MonstraTrait.php Executable file
View File

@@ -0,0 +1,31 @@
<?php
namespace Monstra;
trait MonstraTrait
{
/**
* @var Monstra
*/
protected static $monstra;
/**
* @return Monstra
*/
public static function getMonstra()
{
if (!self::$monstra) {
self::$monstra = Monstra::instance();
}
return self::$monstra;
}
/**
* @param Monstra $monstra
*/
public static function setMonstra(Monstra $monstra)
{
self::$monstra = $monstra;
}
}