File tree Expand file tree Collapse file tree 3 files changed +8
-153
lines changed
Expand file tree Collapse file tree 3 files changed +8
-153
lines changed Original file line number Diff line number Diff line change 1919
2020class Acl
2121{
22- /**
23- * __construct
24- */
25- public function __construct ()
26- {
27-
28- }
29-
3022 /**
3123 * Check is user logged in
3224 *
Original file line number Diff line number Diff line change 1313
1414use Flextype \Plugin \Acl \Models \Acl ;
1515use Flextype \Plugin \Acl \Twig \AclTwigExtension ;
16+ use Flextype \Plugin \Twig \Twig \FlextypeTwig ;
17+ use Flextype \Foundation \Entries \Entries ;
18+ use Flextype \Plugin \Twig \Twig \FlextypeEntriesTwig ;
19+
1620
1721/**
1822 * Add ACL Model to Flextype container
1923 */
20- flextype ()->container ()['acl ' ] = static function () {
21- return new Acl ();
22- };
24+ flextype ()->container ()['acl ' ] = fn () => new Acl ();
25+
2326
2427/**
25- * Add ACL Twig Extension to Flextype container
28+ * Add ACL Model to Flextype Twig
2629 */
27- flextype ( ' twig ' )-> addExtension ( new AclTwigExtension ( ));
30+ FlextypeTwig:: macro ( ' acl ' , fn () => flextype ( ' acl ' ));
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments