Skip to content

Commit

Permalink
Oops, accidentally merged local 2.0 branch into develop, revert GravT…
Browse files Browse the repository at this point in the history
…rait deprecation and add back new Framework classes
  • Loading branch information
mahagr committed May 10, 2017
1 parent 08e0679 commit 6685dad
Show file tree
Hide file tree
Showing 21 changed files with 2,072 additions and 51 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# v2.0.0-dev
## mm/dd/2017

1. [](#new)
* Added `Grav\Framework\ContentBlock` classes which add better support for nested HTML blocks with assets
* Added `Grav\Framework\Object` classes to support general objects and their collections
* Added `Grav\Framework\Page` interfaces
* Deprecated GravTrait

# v1.2.5
## mm/dd/2017

Expand Down
102 changes: 52 additions & 50 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion system/src/Grav/Common/GravTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

namespace Grav\Common;

/**
* @deprecated in Grav 2.0
*/
trait GravTrait
{
protected static $grav;
Expand All @@ -21,7 +24,9 @@ public static function getGrav()
self::$grav = Grav::instance();
}

$caller = self::$grav['debugger']->getCaller();
self::$grav['debugger']->addMessage("Deprecated GravTrait used in {$caller['file']}", 'deprecated');

return self::$grav;
}
}

Loading

0 comments on commit 6685dad

Please sign in to comment.