Skip to content
This repository has been archived by the owner on Mar 20, 2022. It is now read-only.

Commit

Permalink
add context (closes #13)
Browse files Browse the repository at this point in the history
  • Loading branch information
edalzell committed Oct 15, 2020
1 parent 87fc7ff commit d9886f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Directives/Nav.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Edalzell\Blade\Directives;

use Statamic\Tags\ArrayAccessor;
use Statamic\Tags\Context;
use Statamic\Tags\Structure;

class Nav extends Structure
Expand All @@ -25,6 +26,7 @@ private function initParams($params = [])
'include_home' => false,
];

$this->context = Context::make();
$this->params = ArrayAccessor::make(array_merge($defaults, $params));
}
}

0 comments on commit d9886f2

Please sign in to comment.