From 922a7fcc6f4512f2d49dff138be05cc00ca52a4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Artur=20St=C4=99pie=C5=84?= Date: Tue, 8 Jun 2021 19:28:36 +0200 Subject: [PATCH] Changed directories structure --- README.md | 2 +- composer.json | 2 +- {Wargaming => src}/Api.php | 2 +- {Wargaming => src}/Language/CS.php | 2 -- {Wargaming => src}/Language/DE.php | 2 -- {Wargaming => src}/Language/EN.php | 2 -- {Wargaming => src}/Language/ES.php | 2 -- {Wargaming => src}/Language/FR.php | 2 -- {Wargaming => src}/Language/LanguagePrototype.php | 0 {Wargaming => src}/Language/PL.php | 2 -- {Wargaming => src}/Language/RU.php | 2 -- {Wargaming => src}/Language/TH.php | 2 -- {Wargaming => src}/Language/TR.php | 2 -- {Wargaming => src}/Language/VI.php | 2 -- {Wargaming => src}/Language/ZHCN.php | 2 -- {Wargaming => src}/Server/ASIA.php | 0 {Wargaming => src}/Server/EU.php | 0 {Wargaming => src}/Server/KR.php | 0 {Wargaming => src}/Server/NA.php | 0 {Wargaming => src}/Server/RU.php | 0 {Wargaming => src}/Server/ServerPrototype.php | 0 21 files changed, 3 insertions(+), 25 deletions(-) rename {Wargaming => src}/Api.php (100%) rename {Wargaming => src}/Language/CS.php (89%) rename {Wargaming => src}/Language/DE.php (89%) rename {Wargaming => src}/Language/EN.php (89%) rename {Wargaming => src}/Language/ES.php (89%) rename {Wargaming => src}/Language/FR.php (89%) rename {Wargaming => src}/Language/LanguagePrototype.php (100%) rename {Wargaming => src}/Language/PL.php (89%) rename {Wargaming => src}/Language/RU.php (89%) rename {Wargaming => src}/Language/TH.php (89%) rename {Wargaming => src}/Language/TR.php (89%) rename {Wargaming => src}/Language/VI.php (89%) rename {Wargaming => src}/Language/ZHCN.php (89%) rename {Wargaming => src}/Server/ASIA.php (100%) rename {Wargaming => src}/Server/EU.php (100%) rename {Wargaming => src}/Server/KR.php (100%) rename {Wargaming => src}/Server/NA.php (100%) rename {Wargaming => src}/Server/RU.php (100%) rename {Wargaming => src}/Server/ServerPrototype.php (100%) diff --git a/README.md b/README.md index 4d979e3..33cb6f9 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ $api = new Wargaming\API($lang, $server); // Test how it works try { - $data = $api->get('wgn/clans/list', ['search'=>'PSQD']); + $data = $api->get('wgn/clans/list', ['search'=>'PSQD','fields'=>'name,tag,clan_id']); // Display info about WoT Clan PSQD var_dump($data); diff --git a/composer.json b/composer.json index 021ecbb..7cce774 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ }, "autoload": { "psr-4": { - "Wargaming\\": "Wargaming/" + "Wargaming\\": "src/" } }, "conflict": { diff --git a/Wargaming/Api.php b/src/Api.php similarity index 100% rename from Wargaming/Api.php rename to src/Api.php index 6fb6a45..b943ceb 100644 --- a/Wargaming/Api.php +++ b/src/Api.php @@ -10,8 +10,8 @@ namespace Wargaming; use Exception; -use Wargaming\Language\LanguagePrototype; use Wargaming\Server\ServerPrototype; +use Wargaming\Language\LanguagePrototype; /** * Class takes care of accessing and processing Wargaming API requests. diff --git a/Wargaming/Language/CS.php b/src/Language/CS.php similarity index 89% rename from Wargaming/Language/CS.php rename to src/Language/CS.php index 0a884fe..c00267b 100644 --- a/Wargaming/Language/CS.php +++ b/src/Language/CS.php @@ -2,8 +2,6 @@ namespace Wargaming\Language; -use Exception; - /** * Class CS * @package Wargaming\Language diff --git a/Wargaming/Language/DE.php b/src/Language/DE.php similarity index 89% rename from Wargaming/Language/DE.php rename to src/Language/DE.php index 9b0ff7b..85c2730 100644 --- a/Wargaming/Language/DE.php +++ b/src/Language/DE.php @@ -2,8 +2,6 @@ namespace Wargaming\Language; -use Exception; - /** * Class DE * @package Wargaming\Language diff --git a/Wargaming/Language/EN.php b/src/Language/EN.php similarity index 89% rename from Wargaming/Language/EN.php rename to src/Language/EN.php index 35076f9..fd6a874 100644 --- a/Wargaming/Language/EN.php +++ b/src/Language/EN.php @@ -2,8 +2,6 @@ namespace Wargaming\Language; -use Exception; - /** * Class EN * @package Wargaming\Language diff --git a/Wargaming/Language/ES.php b/src/Language/ES.php similarity index 89% rename from Wargaming/Language/ES.php rename to src/Language/ES.php index 13a83a3..55bef70 100644 --- a/Wargaming/Language/ES.php +++ b/src/Language/ES.php @@ -2,8 +2,6 @@ namespace Wargaming\Language; -use Exception; - /** * Class ES * @package Wargaming\Language diff --git a/Wargaming/Language/FR.php b/src/Language/FR.php similarity index 89% rename from Wargaming/Language/FR.php rename to src/Language/FR.php index 200beea..d0fe988 100644 --- a/Wargaming/Language/FR.php +++ b/src/Language/FR.php @@ -2,8 +2,6 @@ namespace Wargaming\Language; -use Exception; - /** * Class FR * @package Wargaming\Language diff --git a/Wargaming/Language/LanguagePrototype.php b/src/Language/LanguagePrototype.php similarity index 100% rename from Wargaming/Language/LanguagePrototype.php rename to src/Language/LanguagePrototype.php diff --git a/Wargaming/Language/PL.php b/src/Language/PL.php similarity index 89% rename from Wargaming/Language/PL.php rename to src/Language/PL.php index 7881ec1..8dc22c9 100644 --- a/Wargaming/Language/PL.php +++ b/src/Language/PL.php @@ -2,8 +2,6 @@ namespace Wargaming\Language; -use Exception; - /** * Class PL * @package Wargaming\Language diff --git a/Wargaming/Language/RU.php b/src/Language/RU.php similarity index 89% rename from Wargaming/Language/RU.php rename to src/Language/RU.php index 4a4e103..693dec6 100644 --- a/Wargaming/Language/RU.php +++ b/src/Language/RU.php @@ -2,8 +2,6 @@ namespace Wargaming\Language; -use Exception; - /** * Class RU * @package Wargaming\Language diff --git a/Wargaming/Language/TH.php b/src/Language/TH.php similarity index 89% rename from Wargaming/Language/TH.php rename to src/Language/TH.php index dce9d1c..200301e 100644 --- a/Wargaming/Language/TH.php +++ b/src/Language/TH.php @@ -2,8 +2,6 @@ namespace Wargaming\Language; -use Exception; - /** * Class TH * @package Wargaming\Language diff --git a/Wargaming/Language/TR.php b/src/Language/TR.php similarity index 89% rename from Wargaming/Language/TR.php rename to src/Language/TR.php index 2098bc3..a1111f5 100644 --- a/Wargaming/Language/TR.php +++ b/src/Language/TR.php @@ -2,8 +2,6 @@ namespace Wargaming\Language; -use Exception; - /** * Class TR * @package Wargaming\Language diff --git a/Wargaming/Language/VI.php b/src/Language/VI.php similarity index 89% rename from Wargaming/Language/VI.php rename to src/Language/VI.php index c0f2da7..6f714a0 100644 --- a/Wargaming/Language/VI.php +++ b/src/Language/VI.php @@ -2,8 +2,6 @@ namespace Wargaming\Language; -use Exception; - /** * Class VI * @package Wargaming\Language diff --git a/Wargaming/Language/ZHCN.php b/src/Language/ZHCN.php similarity index 89% rename from Wargaming/Language/ZHCN.php rename to src/Language/ZHCN.php index 22a61a2..f991e9f 100644 --- a/Wargaming/Language/ZHCN.php +++ b/src/Language/ZHCN.php @@ -2,8 +2,6 @@ namespace Wargaming\Language; -use Exception; - /** * Class ZHCN * @package Wargaming\Language diff --git a/Wargaming/Server/ASIA.php b/src/Server/ASIA.php similarity index 100% rename from Wargaming/Server/ASIA.php rename to src/Server/ASIA.php diff --git a/Wargaming/Server/EU.php b/src/Server/EU.php similarity index 100% rename from Wargaming/Server/EU.php rename to src/Server/EU.php diff --git a/Wargaming/Server/KR.php b/src/Server/KR.php similarity index 100% rename from Wargaming/Server/KR.php rename to src/Server/KR.php diff --git a/Wargaming/Server/NA.php b/src/Server/NA.php similarity index 100% rename from Wargaming/Server/NA.php rename to src/Server/NA.php diff --git a/Wargaming/Server/RU.php b/src/Server/RU.php similarity index 100% rename from Wargaming/Server/RU.php rename to src/Server/RU.php diff --git a/Wargaming/Server/ServerPrototype.php b/src/Server/ServerPrototype.php similarity index 100% rename from Wargaming/Server/ServerPrototype.php rename to src/Server/ServerPrototype.php