Skip to content

Commit

Permalink
ACL 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Awilum committed Aug 5, 2020
1 parent 4b96844 commit 67d76d9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
<a name="1.2.1"></a>
# [1.2.1](https://github.com/flextype-plugins/acl) (2020-08-05)

### Features

* **core** fixes for new Twig 3

<a name="1.2.0"></a>
# [1.2.0](https://github.com/flextype-plugins/acl) (2020-08-05)

Expand Down
2 changes: 1 addition & 1 deletion plugin.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: ACL
version: 1.2.0
version: 1.2.1
description: ACL plugin for Flextype.
icon: fas fa-users-cog
author:
Expand Down
8 changes: 4 additions & 4 deletions twig/AclTwigExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

namespace Flextype\Plugin\Acl\Twig;

use Twig_Extension;
use Twig_Extension_GlobalsInterface;
use Twig\Extension\AbstractExtension;
use Twig\Extension\GlobalsInterface;

class AclTwigExtension extends Twig_Extension implements Twig_Extension_GlobalsInterface
class AclTwigExtension extends AbstractExtension implements GlobalsInterface
{
/**
* Flextype Dependency Container
Expand All @@ -30,7 +30,7 @@ public function __construct($flextype)
/**
* Register Global variables in an extension
*/
public function getGlobals()
public function getGlobals() : array
{
return [
'acl' => new AclTwig($this->flextype),
Expand Down

0 comments on commit 67d76d9

Please sign in to comment.