From 1f5d3585372d8b918ca3fd5d4eac2e8799fa7161 Mon Sep 17 00:00:00 2001 From: Petro Sokolnykov Date: Thu, 15 Nov 2018 20:55:12 +0300 Subject: [PATCH] upgrade autoloader to PSR-4 --- CHANGELOG.md | 3 ++- composer.json | 15 ++++++++++----- .../YandexTurboPages => }/Channel.php | 0 .../YandexTurboPages => }/ChannelInterface.php | 0 .../YandexTurboPages => }/Counter.php | 0 .../YandexTurboPages => }/CounterInterface.php | 0 src/{sokolnikov911/YandexTurboPages => }/Feed.php | 0 .../YandexTurboPages => }/FeedInterface.php | 0 src/{sokolnikov911/YandexTurboPages => }/Item.php | 0 .../YandexTurboPages => }/ItemInterface.php | 0 .../YandexTurboPages => }/RelatedItem.php | 0 .../RelatedItemInterface.php | 0 .../YandexTurboPages => }/RelatedItemsList.php | 0 .../RelatedItemsListInterface.php | 0 .../YandexTurboPages => }/SimpleXMLElement.php | 0 .../YandexTurboPages => }/TurboContentHeader.php | 0 .../TurboContentHeaderInterface.php | 0 .../YandexTurboPages => }/helpers/Content.php | 0 .../YandexTurboPages => }/ChannelTest.php | 0 .../YandexTurboPages => }/CounterTest.php | 0 .../YandexTurboPages => }/FeedTest.php | 0 .../YandexTurboPages => }/ItemTest.php | 0 .../YandexTurboPages => }/RelatedItemTest.php | 0 .../RelatedItemsListTest.php | 0 .../TurboContentHeaderTest.php | 0 .../helpers/ContentAccordionTest.php | 0 .../helpers/ContentAdBlockPositionTest.php | 0 .../helpers/ContentAdditionalContentTest.php | 0 .../helpers/ContentButtonTest.php | 0 .../helpers/ContentCommentsTest.php | 0 .../helpers/ContentExternalVideoTest.php | 0 .../helpers/ContentGalleryTest.php | 0 .../helpers/ContentHeaderTest.php | 0 .../helpers/ContentImageTest.php | 0 .../helpers/ContentOwnVideoTest.php | 0 .../helpers/ContentRatingTest.php | 0 .../helpers/ContentSliderTest.php | 0 .../helpers/ContentSocialShareTest.php | 0 38 files changed, 12 insertions(+), 6 deletions(-) rename src/{sokolnikov911/YandexTurboPages => }/Channel.php (100%) rename src/{sokolnikov911/YandexTurboPages => }/ChannelInterface.php (100%) rename src/{sokolnikov911/YandexTurboPages => }/Counter.php (100%) rename src/{sokolnikov911/YandexTurboPages => }/CounterInterface.php (100%) rename src/{sokolnikov911/YandexTurboPages => }/Feed.php (100%) rename src/{sokolnikov911/YandexTurboPages => }/FeedInterface.php (100%) rename src/{sokolnikov911/YandexTurboPages => }/Item.php (100%) rename src/{sokolnikov911/YandexTurboPages => }/ItemInterface.php (100%) rename src/{sokolnikov911/YandexTurboPages => }/RelatedItem.php (100%) rename src/{sokolnikov911/YandexTurboPages => }/RelatedItemInterface.php (100%) rename src/{sokolnikov911/YandexTurboPages => }/RelatedItemsList.php (100%) rename src/{sokolnikov911/YandexTurboPages => }/RelatedItemsListInterface.php (100%) rename src/{sokolnikov911/YandexTurboPages => }/SimpleXMLElement.php (100%) rename src/{sokolnikov911/YandexTurboPages => }/TurboContentHeader.php (100%) rename src/{sokolnikov911/YandexTurboPages => }/TurboContentHeaderInterface.php (100%) rename src/{sokolnikov911/YandexTurboPages => }/helpers/Content.php (100%) rename tests/{sokolnikov911/YandexTurboPages => }/ChannelTest.php (100%) rename tests/{sokolnikov911/YandexTurboPages => }/CounterTest.php (100%) rename tests/{sokolnikov911/YandexTurboPages => }/FeedTest.php (100%) rename tests/{sokolnikov911/YandexTurboPages => }/ItemTest.php (100%) rename tests/{sokolnikov911/YandexTurboPages => }/RelatedItemTest.php (100%) rename tests/{sokolnikov911/YandexTurboPages => }/RelatedItemsListTest.php (100%) rename tests/{sokolnikov911/YandexTurboPages => }/TurboContentHeaderTest.php (100%) rename tests/{sokolnikov911/YandexTurboPages => }/helpers/ContentAccordionTest.php (100%) rename tests/{sokolnikov911/YandexTurboPages => }/helpers/ContentAdBlockPositionTest.php (100%) rename tests/{sokolnikov911/YandexTurboPages => }/helpers/ContentAdditionalContentTest.php (100%) rename tests/{sokolnikov911/YandexTurboPages => }/helpers/ContentButtonTest.php (100%) rename tests/{sokolnikov911/YandexTurboPages => }/helpers/ContentCommentsTest.php (100%) rename tests/{sokolnikov911/YandexTurboPages => }/helpers/ContentExternalVideoTest.php (100%) rename tests/{sokolnikov911/YandexTurboPages => }/helpers/ContentGalleryTest.php (100%) rename tests/{sokolnikov911/YandexTurboPages => }/helpers/ContentHeaderTest.php (100%) rename tests/{sokolnikov911/YandexTurboPages => }/helpers/ContentImageTest.php (100%) rename tests/{sokolnikov911/YandexTurboPages => }/helpers/ContentOwnVideoTest.php (100%) rename tests/{sokolnikov911/YandexTurboPages => }/helpers/ContentRatingTest.php (100%) rename tests/{sokolnikov911/YandexTurboPages => }/helpers/ContentSliderTest.php (100%) rename tests/{sokolnikov911/YandexTurboPages => }/helpers/ContentSocialShareTest.php (100%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b0e4c4..d24e177 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ Yandex Turbo Pages Change Log ============================= -Dev-master +1.1.2 November 15, 2018 -------------------- * Enh: added accordion method into Content helper * Enh: added rating method into Content helper @@ -10,6 +10,7 @@ Dev-master * Enh: added adBlockPosition method into Content helper * Enh: added slider method into Content helper * Enh: added additionalContent method into Content helper +* Enh: upgraded autoload to PSR-4 1.1.1 July 10, 2018 -------------------- diff --git a/composer.json b/composer.json index 6e96f70..3e9dca9 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ "feed", "php" ], - "version": "v1.1.1", + "version": "v1.1.2", "homepage": "https://github.com/sokolnikov91/yandex-turbo-pages-php5", "license": "MIT", "authors": [ @@ -26,12 +26,17 @@ "ext-mbstring": "*" }, "require-dev": { - "phpunit/phpunit": "~4.8", - "mockery/mockery": "~0.9" + "phpunit/phpunit": "~4.8.9", + "mockery/mockery": "~0.9.9" }, "autoload": { - "psr-0": { - "sokolnikov911\\YandexTurboPages": "src" + "psr-4": { + "sokolnikov911\\YandexTurboPages\\": "src/" + } + }, + "autoload-dev": { + "psr-4": { + "sokolnikov911\\YandexTurboPages\\": "tests/" } } } diff --git a/src/sokolnikov911/YandexTurboPages/Channel.php b/src/Channel.php similarity index 100% rename from src/sokolnikov911/YandexTurboPages/Channel.php rename to src/Channel.php diff --git a/src/sokolnikov911/YandexTurboPages/ChannelInterface.php b/src/ChannelInterface.php similarity index 100% rename from src/sokolnikov911/YandexTurboPages/ChannelInterface.php rename to src/ChannelInterface.php diff --git a/src/sokolnikov911/YandexTurboPages/Counter.php b/src/Counter.php similarity index 100% rename from src/sokolnikov911/YandexTurboPages/Counter.php rename to src/Counter.php diff --git a/src/sokolnikov911/YandexTurboPages/CounterInterface.php b/src/CounterInterface.php similarity index 100% rename from src/sokolnikov911/YandexTurboPages/CounterInterface.php rename to src/CounterInterface.php diff --git a/src/sokolnikov911/YandexTurboPages/Feed.php b/src/Feed.php similarity index 100% rename from src/sokolnikov911/YandexTurboPages/Feed.php rename to src/Feed.php diff --git a/src/sokolnikov911/YandexTurboPages/FeedInterface.php b/src/FeedInterface.php similarity index 100% rename from src/sokolnikov911/YandexTurboPages/FeedInterface.php rename to src/FeedInterface.php diff --git a/src/sokolnikov911/YandexTurboPages/Item.php b/src/Item.php similarity index 100% rename from src/sokolnikov911/YandexTurboPages/Item.php rename to src/Item.php diff --git a/src/sokolnikov911/YandexTurboPages/ItemInterface.php b/src/ItemInterface.php similarity index 100% rename from src/sokolnikov911/YandexTurboPages/ItemInterface.php rename to src/ItemInterface.php diff --git a/src/sokolnikov911/YandexTurboPages/RelatedItem.php b/src/RelatedItem.php similarity index 100% rename from src/sokolnikov911/YandexTurboPages/RelatedItem.php rename to src/RelatedItem.php diff --git a/src/sokolnikov911/YandexTurboPages/RelatedItemInterface.php b/src/RelatedItemInterface.php similarity index 100% rename from src/sokolnikov911/YandexTurboPages/RelatedItemInterface.php rename to src/RelatedItemInterface.php diff --git a/src/sokolnikov911/YandexTurboPages/RelatedItemsList.php b/src/RelatedItemsList.php similarity index 100% rename from src/sokolnikov911/YandexTurboPages/RelatedItemsList.php rename to src/RelatedItemsList.php diff --git a/src/sokolnikov911/YandexTurboPages/RelatedItemsListInterface.php b/src/RelatedItemsListInterface.php similarity index 100% rename from src/sokolnikov911/YandexTurboPages/RelatedItemsListInterface.php rename to src/RelatedItemsListInterface.php diff --git a/src/sokolnikov911/YandexTurboPages/SimpleXMLElement.php b/src/SimpleXMLElement.php similarity index 100% rename from src/sokolnikov911/YandexTurboPages/SimpleXMLElement.php rename to src/SimpleXMLElement.php diff --git a/src/sokolnikov911/YandexTurboPages/TurboContentHeader.php b/src/TurboContentHeader.php similarity index 100% rename from src/sokolnikov911/YandexTurboPages/TurboContentHeader.php rename to src/TurboContentHeader.php diff --git a/src/sokolnikov911/YandexTurboPages/TurboContentHeaderInterface.php b/src/TurboContentHeaderInterface.php similarity index 100% rename from src/sokolnikov911/YandexTurboPages/TurboContentHeaderInterface.php rename to src/TurboContentHeaderInterface.php diff --git a/src/sokolnikov911/YandexTurboPages/helpers/Content.php b/src/helpers/Content.php similarity index 100% rename from src/sokolnikov911/YandexTurboPages/helpers/Content.php rename to src/helpers/Content.php diff --git a/tests/sokolnikov911/YandexTurboPages/ChannelTest.php b/tests/ChannelTest.php similarity index 100% rename from tests/sokolnikov911/YandexTurboPages/ChannelTest.php rename to tests/ChannelTest.php diff --git a/tests/sokolnikov911/YandexTurboPages/CounterTest.php b/tests/CounterTest.php similarity index 100% rename from tests/sokolnikov911/YandexTurboPages/CounterTest.php rename to tests/CounterTest.php diff --git a/tests/sokolnikov911/YandexTurboPages/FeedTest.php b/tests/FeedTest.php similarity index 100% rename from tests/sokolnikov911/YandexTurboPages/FeedTest.php rename to tests/FeedTest.php diff --git a/tests/sokolnikov911/YandexTurboPages/ItemTest.php b/tests/ItemTest.php similarity index 100% rename from tests/sokolnikov911/YandexTurboPages/ItemTest.php rename to tests/ItemTest.php diff --git a/tests/sokolnikov911/YandexTurboPages/RelatedItemTest.php b/tests/RelatedItemTest.php similarity index 100% rename from tests/sokolnikov911/YandexTurboPages/RelatedItemTest.php rename to tests/RelatedItemTest.php diff --git a/tests/sokolnikov911/YandexTurboPages/RelatedItemsListTest.php b/tests/RelatedItemsListTest.php similarity index 100% rename from tests/sokolnikov911/YandexTurboPages/RelatedItemsListTest.php rename to tests/RelatedItemsListTest.php diff --git a/tests/sokolnikov911/YandexTurboPages/TurboContentHeaderTest.php b/tests/TurboContentHeaderTest.php similarity index 100% rename from tests/sokolnikov911/YandexTurboPages/TurboContentHeaderTest.php rename to tests/TurboContentHeaderTest.php diff --git a/tests/sokolnikov911/YandexTurboPages/helpers/ContentAccordionTest.php b/tests/helpers/ContentAccordionTest.php similarity index 100% rename from tests/sokolnikov911/YandexTurboPages/helpers/ContentAccordionTest.php rename to tests/helpers/ContentAccordionTest.php diff --git a/tests/sokolnikov911/YandexTurboPages/helpers/ContentAdBlockPositionTest.php b/tests/helpers/ContentAdBlockPositionTest.php similarity index 100% rename from tests/sokolnikov911/YandexTurboPages/helpers/ContentAdBlockPositionTest.php rename to tests/helpers/ContentAdBlockPositionTest.php diff --git a/tests/sokolnikov911/YandexTurboPages/helpers/ContentAdditionalContentTest.php b/tests/helpers/ContentAdditionalContentTest.php similarity index 100% rename from tests/sokolnikov911/YandexTurboPages/helpers/ContentAdditionalContentTest.php rename to tests/helpers/ContentAdditionalContentTest.php diff --git a/tests/sokolnikov911/YandexTurboPages/helpers/ContentButtonTest.php b/tests/helpers/ContentButtonTest.php similarity index 100% rename from tests/sokolnikov911/YandexTurboPages/helpers/ContentButtonTest.php rename to tests/helpers/ContentButtonTest.php diff --git a/tests/sokolnikov911/YandexTurboPages/helpers/ContentCommentsTest.php b/tests/helpers/ContentCommentsTest.php similarity index 100% rename from tests/sokolnikov911/YandexTurboPages/helpers/ContentCommentsTest.php rename to tests/helpers/ContentCommentsTest.php diff --git a/tests/sokolnikov911/YandexTurboPages/helpers/ContentExternalVideoTest.php b/tests/helpers/ContentExternalVideoTest.php similarity index 100% rename from tests/sokolnikov911/YandexTurboPages/helpers/ContentExternalVideoTest.php rename to tests/helpers/ContentExternalVideoTest.php diff --git a/tests/sokolnikov911/YandexTurboPages/helpers/ContentGalleryTest.php b/tests/helpers/ContentGalleryTest.php similarity index 100% rename from tests/sokolnikov911/YandexTurboPages/helpers/ContentGalleryTest.php rename to tests/helpers/ContentGalleryTest.php diff --git a/tests/sokolnikov911/YandexTurboPages/helpers/ContentHeaderTest.php b/tests/helpers/ContentHeaderTest.php similarity index 100% rename from tests/sokolnikov911/YandexTurboPages/helpers/ContentHeaderTest.php rename to tests/helpers/ContentHeaderTest.php diff --git a/tests/sokolnikov911/YandexTurboPages/helpers/ContentImageTest.php b/tests/helpers/ContentImageTest.php similarity index 100% rename from tests/sokolnikov911/YandexTurboPages/helpers/ContentImageTest.php rename to tests/helpers/ContentImageTest.php diff --git a/tests/sokolnikov911/YandexTurboPages/helpers/ContentOwnVideoTest.php b/tests/helpers/ContentOwnVideoTest.php similarity index 100% rename from tests/sokolnikov911/YandexTurboPages/helpers/ContentOwnVideoTest.php rename to tests/helpers/ContentOwnVideoTest.php diff --git a/tests/sokolnikov911/YandexTurboPages/helpers/ContentRatingTest.php b/tests/helpers/ContentRatingTest.php similarity index 100% rename from tests/sokolnikov911/YandexTurboPages/helpers/ContentRatingTest.php rename to tests/helpers/ContentRatingTest.php diff --git a/tests/sokolnikov911/YandexTurboPages/helpers/ContentSliderTest.php b/tests/helpers/ContentSliderTest.php similarity index 100% rename from tests/sokolnikov911/YandexTurboPages/helpers/ContentSliderTest.php rename to tests/helpers/ContentSliderTest.php diff --git a/tests/sokolnikov911/YandexTurboPages/helpers/ContentSocialShareTest.php b/tests/helpers/ContentSocialShareTest.php similarity index 100% rename from tests/sokolnikov911/YandexTurboPages/helpers/ContentSocialShareTest.php rename to tests/helpers/ContentSocialShareTest.php