Skip to content

Commit 3d65109

Browse files
committed
Twig-extensions namespacing
1 parent 1064983 commit 3d65109

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# v4.0.0-beta.2
2+
## 15-07-2020
3+
4+
1. [](#improved)
5+
- Twig-extensions namespacing
6+
17
# v4.0.0-beta.1
28
## 12-07-2020
39

blueprints.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Presentation
2-
version: 4.0.0-beta.1
2+
version: 4.0.0-beta.2
33
testing: true
44
description: Responsive navigational slideshows with Reveal.js
55
icon: arrows-alt

presentation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,9 +354,9 @@ public function onShutdown()
354354
public function onTwigExtensions()
355355
{
356356
include_once __DIR__ . '/twig/CallStaticExtension.php';
357-
$this->grav['twig']->twig->addExtension(new CallStaticTwigExtension());
357+
$this->grav['twig']->twig->addExtension(new PresentationPlugin\CallStaticTwigExtension());
358358
include_once __DIR__ . '/twig/FileFinderExtension.php';
359-
$this->grav['twig']->twig->addExtension(new FileFinderTwigExtension());
359+
$this->grav['twig']->twig->addExtension(new PresentationPlugin\FileFinderTwigExtension());
360360
}
361361

362362
/**

twig/CallStaticExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace Grav\Plugin;
2+
namespace Grav\Plugin\PresentationPlugin;
33

44
class CallStaticTwigExtension extends \Twig_Extension
55
{

twig/FileFinderExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace Grav\Plugin;
2+
namespace Grav\Plugin\PresentationPlugin;
33

44
/**
55
* Search for a file in multiple locations

0 commit comments

Comments
 (0)