Skip to content

Commit 859c333

Browse files
committed
Icon 1.2.0
1 parent 5a25529 commit 859c333

File tree

7 files changed

+29
-10
lines changed

7 files changed

+29
-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.2.0"></a>
2+
# [1.2.0](https://github.com/flextype-plugins/form-admin/compare/v1.1.2...v1.2.0) (2020-08-19)
3+
4+
### Features
5+
6+
* **core** update code base for new Flextype 0.9.10
7+
18
<a name="1.1.2"></a>
29
# [1.1.2](https://github.com/flextype-plugins/icon/compare/v1.1.1...v1.1.2) (2020-08-07)
310

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<h1 align="center">Icon Plugin for <a href="http://flextype.org/">Flextype</a></h1>
22

33
<p align="center">
4-
<a href="https://github.com/flextype-plugins/icon/releases"><img alt="Version" src="https://img.shields.io/github/release/flextype-plugins/icon/icon.svg?label=version&color=black"></a> <a href="https://github.com/flextype-plugins/icon"><img src="https://img.shields.io/badge/license-MIT-blue.svg?color=black" alt="License"></a> <a href="https://github.com/flextype-plugins/icon"><img src="https://img.shields.io/github/downloads/flextype-plugins/icon/total.svg?color=black" alt="Total downloads"></a> <a href="https://github.com/flextype/flextype"><img src="https://img.shields.io/badge/Flextype-0.9.9-green.svg?color=black" alt="Flextype"></a> <a href=""><img src="https://img.shields.io/discord/423097982498635778.svg?logo=discord&color=black&label=Discord%20Chat" alt="Discord"></a>
4+
<a href="https://github.com/flextype-plugins/icon/releases"><img alt="Version" src="https://img.shields.io/github/release/flextype-plugins/icon/icon.svg?label=version&color=black"></a> <a href="https://github.com/flextype-plugins/icon"><img src="https://img.shields.io/badge/license-MIT-blue.svg?color=black" alt="License"></a> <a href="https://github.com/flextype-plugins/icon"><img src="https://img.shields.io/github/downloads/flextype-plugins/icon/total.svg?color=black" alt="Total downloads"></a> <a href="https://github.com/flextype/flextype"><img src="https://img.shields.io/badge/Flextype-0.9.10-green.svg?color=black" alt="Flextype"></a> <a href=""><img src="https://img.shields.io/discord/423097982498635778.svg?logo=discord&color=black&label=Discord%20Chat" alt="Discord"></a>
55
</p>
66

77
Icon plugin to present [Font Awesome](https://fontawesome.com/) icons set for Flextype.
@@ -14,7 +14,7 @@ The following dependencies need to be installed for Icon Plugin.
1414

1515
| Item | Version | Download |
1616
|---|---|---|
17-
| [flextype](https://github.com/flextype/flextype) | 0.9.9 | [download](https://github.com/flextype/flextype/releases) |
17+
| [flextype](https://github.com/flextype/flextype) | 0.9.10 | [download](https://github.com/flextype/flextype/releases) |
1818
| [twig](https://github.com/flextype-plugins/twig) | >=1.0.0 | [download](https://github.com/flextype-plugins/twig/releases) |
1919

2020
## Installation

app/Models/Icon.php

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,22 @@
1212
namespace Flextype\Plugin\Icon\Models;
1313

1414
use Flextype\Component\Filesystem\Filesystem;
15-
use Flextype\App\Foundation\Container;
1615

17-
class Icon extends Container
16+
class Icon
1817
{
18+
/**
19+
* Flextype Application
20+
*/
21+
protected $flextype;
22+
23+
/**
24+
* __construct
25+
*/
26+
public function __construct($flextype)
27+
{
28+
$this->flextype = $flextype;
29+
}
30+
1931
public static function icon($value = null) : string
2032
{
2133
$icon_fallback_file_path = PATH['project'] . '/plugins/icon/assets/dist/fontawesome/svgs/regular/file-alt.svg';

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
"issues": "https://github.com/flextype-plugins/icon/issues"
1717
},
1818
"require": {
19-
"php": ">=7.2.5"
19+
"php": ">=7.3.0"
2020
},
2121
"config": {
2222
"apcu-autoloader": true,
2323
"optimize-autoloader": true,
2424
"platform": {
25-
"php": "7.2.5"
25+
"php": "7.3.0"
2626
}
2727
},
2828
"autoload": {

dependencies.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
use Flextype\Plugin\Icon\Twig\IconTwigExtension;
1515

1616
// Add Icon Twig Extension
17-
$flextype->twig->addExtension(new IconTwigExtension($flextype));
17+
$flextype->container('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.2",
3+
"version": "1.2.0",
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Icon
2-
version: 1.1.2
2+
version: 1.2.0
33
description: Icon plugin to present Font Awesome icons set for Flextype.
44
icon: fab fa-font-awesome-flag
55
author:
@@ -11,5 +11,5 @@ bugs: https://github.com/flextype-plugins/icon/issues
1111
license: MIT
1212

1313
dependencies:
14-
flextype: 0.9.9
14+
flextype: 0.9.10
1515
twig: '>=1.0.0'

0 commit comments

Comments
 (0)