Skip to content
This repository was archived by the owner on Aug 19, 2022. It is now read-only.

Commit 0af11f1

Browse files
committed
Updated to 1.0.2 version
1 parent 42b734a commit 0af11f1

File tree

13 files changed

+75
-39
lines changed

13 files changed

+75
-39
lines changed

CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,41 @@
11
# CHANGELOG
22

3+
## 1.0.2 - 2017-09-09
4+
5+
* Replaced `eliasis-framework/module` to `eliasis-framework/complement` library.
6+
7+
* Deleted `App\Modules\WP_Plugin_Info\Controller\Launcher\Launcher` class.
8+
* Deleted `App\Modules\WP_Plugin_Info\Controller\Launcher\Launcher->init()` method.
9+
* Deleted `App\Modules\WP_Plugin_Info\Controller\Launcher\Launcher->admin()` method.
10+
* Deleted `App\Modules\WP_Plugin_Info\Controller\Launcher\Launcher->afterAddMenu()` method.
11+
12+
* Deleted `App\Modules\WP_Plugin_Info\Controller\Admin\Info\Info` class.
13+
* Deleted `App\Modules\WP_Plugin_Info\Controller\Admin\Info\Info->getPluginsInfo()` method.
14+
* Deleted `App\Modules\WP_Plugin_Info\Controller\Admin\Info\Info->getInfo()` method.
15+
* Deleted `App\Modules\WP_Plugin_Info\Controller\Admin\Info\Info->updated()` method.
16+
* Deleted `App\Modules\WP_Plugin_Info\Controller\Admin\Info\Info->getPluginInfo()` method.
17+
* Deleted `App\Modules\WP_Plugin_Info\Controller\Admin\Info\Info->get()` method.
18+
19+
* Deleted `App\Modules\WP_Plugin_Info\Model\Admin\Info\Info` class.
20+
* Deleted `App\Modules\WP_Plugin_Info\Model\Admin\Info\Info->getPluginsInfo()` method.
21+
* Deleted `App\Modules\WP_Plugin_Info\Model\Admin\Info\Info->setPluginsInfo()` method.
22+
23+
* Added `App\Plugins\WP_Plugin_Info\Controller\Launcher\Launcher` class.
24+
* Added `App\Plugins\WP_Plugin_Info\Controller\Launcher\Launcher->init()` method.
25+
* Added `App\Plugins\WP_Plugin_Info\Controller\Launcher\Launcher->admin()` method.
26+
* Added `App\Plugins\WP_Plugin_Info\Controller\Launcher\Launcher->afterAddMenu()` method.
27+
28+
* Added `App\Plugins\WP_Plugin_Info\Controller\Admin\Info\Info` class.
29+
* Added `App\Plugins\WP_Plugin_Info\Controller\Admin\Info\Info->getPluginsInfo()` method.
30+
* Added `App\Plugins\WP_Plugin_Info\Controller\Admin\Info\Info->getInfo()` method.
31+
* Added `App\Plugins\WP_Plugin_Info\Controller\Admin\Info\Info->updated()` method.
32+
* Added `App\Plugins\WP_Plugin_Info\Controller\Admin\Info\Info->getPluginInfo()` method.
33+
* Added `App\Plugins\WP_Plugin_Info\Controller\Admin\Info\Info->get()` method.
34+
35+
* Added `App\Plugins\WP_Plugin_Info\Model\Admin\Info\Info` class.
36+
* Added `App\Plugins\WP_Plugin_Info\Model\Admin\Info\Info->getPluginsInfo()` method.
37+
* Added `App\Plugins\WP_Plugin_Info\Model\Admin\Info\Info->setPluginsInfo()` method.
38+
339
## 1.0.1 - 2017-09-06
440

541
* Added `wp-plugin-info/wp_plugin-info.jsond` file.

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "josantonius/wp_plugin-info",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Get and save plugin information from WordPress API to be consumed by other modules.",
5-
"type": "eliasis-module",
5+
"type": "eliasis-plugin",
66
"keywords": [
77
"WordPress",
88
"Plugin",
@@ -34,12 +34,12 @@
3434
},
3535
"require": {
3636
"php": "^5.3 || ^7.0",
37-
"eliasis-framework/eliasis" : "^1.1.0",
37+
"eliasis-framework/eliasis" : "^1.1.1",
3838
"composer/installers" : "^1.4.0"
3939
},
4040
"autoload": {
4141
"psr-4": {
42-
"Eliasis\\Modules\\WP_Plugin_Info\\" : "src/"
42+
"Eliasis\\Plugins\\WP_Plugin_Info\\" : "src/"
4343
}
4444
}
4545
}

config/add-paths.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* WP Plugin Info · Eliasis module for WordPress plugins
3+
* WP Plugin Info · Eliasis plugin for WordPress plugins
44
*
55
* @author Josantonius - hello@josantonius.com
66
* @copyright Copyright (c) 2017
@@ -10,11 +10,11 @@
1010
*/
1111

1212
use Eliasis\App\App,
13-
Eliasis\Module\Module;
13+
Eliasis\Complement\Type\Plugin\Plugin;
1414

1515
$DS = App::DS;
1616

17-
$ROOT = Module::WP_Plugin_Info()->get('path', 'root');
17+
$ROOT = Plugin::WP_Plugin_Info()->get('path', 'root');
1818

1919
return [
2020

config/add-urls.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* WP Plugin Info · Eliasis module for WordPress plugins
3+
* WP Plugin Info · Eliasis plugin for WordPress plugins
44
*
55
* @author Josantonius - hello@josantonius.com
66
* @copyright Copyright (c) 2017
@@ -10,9 +10,9 @@
1010
*/
1111

1212
use Eliasis\App\App,
13-
Eliasis\Module\Module;
13+
Eliasis\Complement\Type\Plugin\Plugin;
1414

15-
$url = App::MODULES_URL() . Module::WP_Plugin_Info()->get('folder');
15+
$url = App::MODULES_URL() . Plugin::WP_Plugin_Info()->get('folder');
1616

1717
return [
1818

config/files.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* WP Plugin Info · Eliasis module for WordPress plugins
3+
* WP Plugin Info · Eliasis plugin for WordPress plugins
44
*
55
* @author Josantonius - hello@josantonius.com
66
* @copyright Copyright (c) 2017
@@ -9,9 +9,9 @@
99
* @since 1.0.0
1010
*/
1111

12-
use Eliasis\Module\Module;
12+
use Eliasis\Complement\Type\Plugin\Plugin;
1313

14-
$path = Module::WP_Plugin_Info()->get('path', 'data');
14+
$path = Plugin::WP_Plugin_Info()->get('path', 'data');
1515

1616
return [
1717

config/namespaces.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* WP Plugin Info · Eliasis module for WordPress plugins
3+
* WP Plugin Info · Eliasis plugin for WordPress plugins
44
*
55
* @author Josantonius - hello@josantonius.com
66
* @copyright Copyright (c) 2017
@@ -9,7 +9,7 @@
99
* @since 1.0.0
1010
*/
1111

12-
$namespace = 'Eliasis\\Modules\\';
12+
$namespace = 'Eliasis\\Plugins\\';
1313

1414
$module = 'WP_Plugin_Info\\Controller\\';
1515

config/paths.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* WP Plugin Info · Eliasis module for WordPress plugins
3+
* WP Plugin Info · Eliasis plugin for WordPress plugins
44
*
55
* @author Josantonius - hello@josantonius.com
66
* @copyright Copyright (c) 2017
@@ -10,9 +10,9 @@
1010
*/
1111

1212
use Eliasis\App\App,
13-
Eliasis\Module\Module;
13+
Eliasis\Complement\Type\Plugin\Plugin;
1414

15-
$ROOT = Module::WP_Plugin_Info()->get('path', 'root');
15+
$ROOT = Plugin::WP_Plugin_Info()->get('path', 'root');
1616

1717
return [
1818

config/set-hooks.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* WP Plugin Info · Eliasis module for WordPress plugins
3+
* WP Plugin Info · Eliasis plugin for WordPress plugins
44
*
55
* @author Josantonius - hello@josantonius.com
66
* @copyright Copyright (c) 2017
@@ -9,9 +9,9 @@
99
* @since 1.0.0
1010
*/
1111

12-
use Eliasis\Module\Module;
12+
use Eliasis\Complement\Type\Plugin\Plugin;
1313

14-
$namespace = Module::WP_Plugin_Info()->get('namespaces', 'controller');
14+
$namespace = Plugin::WP_Plugin_Info()->get('namespaces', 'controller');
1515

1616
$class = $namespace . 'Launcher\Launcher';
1717

config/settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* WP Plugin Info · Eliasis module for WordPress plugins
3+
* WP Plugin Info · Eliasis plugin for WordPress plugins
44
*
55
* @author Josantonius - hello@josantonius.com
66
* @copyright Copyright (c) 2017

src/Controller/Admin/Info/Info.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* WP Plugin Info · Eliasis module for WordPress plugins
3+
* WP Plugin Info · Eliasis plugin for WordPress plugins
44
*
55
* @author Josantonius - hello@josantonius.com
66
* @copyright Copyright (c) 2017
@@ -9,9 +9,9 @@
99
* @since 1.0.0
1010
*/
1111

12-
namespace Eliasis\Modules\WP_Plugin_Info\Controller\Admin\Info;
12+
namespace Eliasis\Plugins\WP_Plugin_Info\Controller\Admin\Info;
1313

14-
use Eliasis\Module\Module,
14+
use Eliasis\Complement\Type\Plugin\Plugin,
1515
Eliasis\Controller\Controller;
1616

1717
/**
@@ -71,7 +71,7 @@ protected function getPluginInfo($slug) {
7171
'request' => serialize($args)
7272
];
7373

74-
$url = Module::WP_Plugin_Info()->get('url', 'wp-api');
74+
$url = Plugin::WP_Plugin_Info()->get('url', 'wp-api');
7575

7676
$resp = wp_remote_post($url, ['body' => $request]);
7777

@@ -138,7 +138,7 @@ protected function updated() {
138138

139139
if (isset($this->plugin[$this->slug]['last-update'])) {
140140

141-
$interval = Module::WP_Plugin_Info()->get('interval');
141+
$interval = Plugin::WP_Plugin_Info()->get('interval');
142142

143143
$lastUpdate = $this->plugin[$this->slug]['last-update'];
144144

0 commit comments

Comments
 (0)