Skip to content

Commit f7f7c30

Browse files
committed
Icon 1.1.1
1 parent 415931f commit f7f7c30

File tree

7 files changed

+19
-10
lines changed

7 files changed

+19
-10
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
<a name="1.1.1"></a>
2+
# [1.1.1](https://github.com/flextype-plugins/icon/compare/v1.1.0...v1.1.1) (2020-08-05)
3+
4+
### Bug Fixes
5+
6+
* **core** fixes for new Twig 3
7+
18
<a name="1.1.0"></a>
29
# [1.1.0](https://github.com/flextype-plugins/icon/compare/v1.0.1...v1.1.0) (2020-08-05)
310

app/Models/Icon.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Flextype;
12+
namespace Flextype\Plugin\Icon\Models;
1313

1414
use Flextype\Component\Filesystem\Filesystem;
1515
use Flextype\App\Foundation\Container;

bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Flextype;
12+
namespace Flextype\Plugin\Icon;
1313

1414
use function is_file;
1515

dependencies.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Flextype;
12+
namespace Flextype\Plugin\Icon;
13+
14+
use Flextype\Plugin\Icon\Twig\IconTwigExtension;
1315

1416
// Add Icon Twig Extension
1517
$flextype->twig->addExtension(new IconTwigExtension($flextype));

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Icon",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "Icon plugin to present Font Awesome icons set for Flextype.",
55
"homepage": "https://flextype.org",
66
"author": "Sergey Romanenko",

plugin.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Icon
2-
version: 1.1.0
2+
version: 1.1.1
33
description: Icon plugin to present Font Awesome icons set for Flextype.
44
icon: fab fa-font-awesome-flag
55
author:

twig/IconTwigExtension.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
* Founded by Sergey Romanenko and maintained by Flextype Community.
88
*/
99

10-
namespace Flextype;
10+
namespace Flextype\Plugin\Icon\Twig;
1111

12-
use Twig_Extension;
13-
use Twig_SimpleFunction;
12+
use Twig\Extension\AbstractExtension;
13+
use Flextype\Plugin\Icon\Models\Icon;
1414

15-
class IconTwigExtension extends Twig_Extension
15+
class IconTwigExtension extends AbstractExtension
1616
{
1717
/**
1818
* Callback for twig.
@@ -22,7 +22,7 @@ class IconTwigExtension extends Twig_Extension
2222
public function getFunctions() : array
2323
{
2424
return [
25-
new Twig_SimpleFunction('icon', [$this, 'icon'], ['is_safe' => ['html']])
25+
new \Twig\TwigFunction('icon', [$this, 'icon'], ['is_safe' => ['html']])
2626
];
2727
}
2828

0 commit comments

Comments
 (0)