Skip to content
This repository was archived by the owner on Sep 4, 2020. It is now read-only.

Commit c1f3853

Browse files
committed
v1.0.2
1 parent 87692f2 commit c1f3853

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

Assets.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Assets
3737
*/
3838
public static function add(string $asset_type, string $asset, string $namespace, int $priority = 1) : void
3939
{
40-
static::$assets[$namespace][$asset_type][$priority][] = [
40+
Assets::$assets[$namespace][$asset_type][$priority][] = [
4141
'asset' => $asset
4242
];
4343
}
@@ -55,12 +55,12 @@ public static function add(string $asset_type, string $asset, string $namespace,
5555
public static function get(string $asset_type, string $namespace) : array
5656
{
5757
// is there some registered $assets for current $namespace ?
58-
if (isset(static::$assets[$namespace])
59-
&& isset(static::$assets[$namespace][$asset_type])
60-
&& count(static::$assets[$namespace][$asset_type]) > 0) {
58+
if (isset(Assets::$assets[$namespace])
59+
&& isset(Assets::$assets[$namespace][$asset_type])
60+
&& count(Assets::$assets[$namespace][$asset_type]) > 0) {
6161

6262
// Get all $assets for given $namespace and $asset_type.
63-
$assets = static::$assets[$namespace][$asset_type];
63+
$assets = Assets::$assets[$namespace][$asset_type];
6464

6565
// Sort $assets by priority from low to high
6666
ksort($assets);

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# v1.0.2, 2018-07-10
2+
* change static to Assets
3+
14
# v1.0.1, 2018-05-13
25
* Change protected static $assets to private static $assets
36

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Assets Component
2-
![version](https://img.shields.io/badge/version-1.0.1-brightgreen.svg?style=flat-square "Version")
2+
![version](https://img.shields.io/badge/version-1.0.2-brightgreen.svg?style=flat-square "Version")
33
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/flextype-components/assets/blob/master/LICENSE)
44

55
Assets Component for managing assets in your application.

0 commit comments

Comments
 (0)