diff --git a/CHANGELOG.md b/CHANGELOG.md index e8fb31e..05168d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,15 @@ Types of changes > [!Tip] > Thank you to all [EAP](https://pdir.de/crowdfunding/social-feed-bundle.html) supporters! +## [2.14.0](https://github.com/pdir/social-feed-bundle/tree/2.14.0) - 2025-01-15 + +- [Added] Add compatibility for Contao 5.4+ +- [Fixed] Instagram import (You need a business app, see [docs](https://pdir.de/docs/de/contao/extensions/socialfeed/configuration/instagram/)) + +## [2.13.7](https://github.com/pdir/social-feed-bundle/tree/2.13.6) - 2025-01-15 + +- [Fixed] Instagram import (You need a business app, see [docs](https://pdir.de/docs/de/contao/extensions/socialfeed/configuration/instagram/)) + ## [2.13.6](https://github.com/pdir/social-feed-bundle/tree/2.13.6) - 2024-11-21 -[Fixed] Update kevinrob/guzzle-cache-middleware fix #150 🤗 [contaoacademy](https://github.com/contaoacademy) diff --git a/composer.json b/composer.json index c4d136b..9e40770 100644 --- a/composer.json +++ b/composer.json @@ -43,11 +43,11 @@ "donate": "https://contao-themes.net/sponsoring.html" }, "require": { - "php": "^8.0", + "php": "^8.1", "ext-json": "*", - "contao/core-bundle": "^4.13 || ^5.3", - "contao/news-bundle": "^4.13 || ^5.3", - "nickdnk/graph-sdk": "^6.0 || ^7.0", + "contao/core-bundle": "^5.3", + "contao/news-bundle": "^5.3", + "nickdnk/graph-sdk": "^7.0", "abraham/twitteroauth": "~4.0", "guzzlehttp/guzzle": "6.0 | ~7.7", "kevinrob/guzzle-cache-middleware": "^5.1", diff --git a/config/commands.yml b/config/commands.yaml similarity index 100% rename from config/commands.yml rename to config/commands.yaml diff --git a/config/controller.yaml b/config/controller.yaml new file mode 100644 index 0000000..ebbd8d1 --- /dev/null +++ b/config/controller.yaml @@ -0,0 +1,18 @@ +services: + _defaults: + autoconfigure: true + + Pdir\SocialFeedBundle\Controller\FacebookController: + public: true + arguments: + - '@database_connection' + - '@router' + + Pdir\SocialFeedBundle\Controller\InstagramController: + public: true + + Pdir\SocialFeedBundle\Controller\LinkedinController: + public: true + arguments: + - '@database_connection' + - '@router' diff --git a/config/routes.yaml b/config/routes.yaml index 58da485..4ee8bf2 100644 --- a/config/routes.yaml +++ b/config/routes.yaml @@ -1,3 +1,5 @@ -pdir_social_feed.controller: - resource: ../src/Controller - type: annotation +pdir_social_feed.controllers: + resource: + path: ../src/Controller/ + namespace: Pdir\SocialFeedBundle\Controller + type: attribute diff --git a/config/services.yml b/config/services.yaml similarity index 96% rename from config/services.yml rename to config/services.yaml index 85fd45f..2da324f 100644 --- a/config/services.yml +++ b/config/services.yaml @@ -47,10 +47,6 @@ services: Pdir\SocialFeedBundle\EventListener\DataContainer\SocialFeedListener: public: true - arguments: - - "@router" - - '@security.helper' - - '@contao.image.sizes' pdir_social_feed_moderate.controller: class: Pdir\SocialFeedBundle\Controller\ModerateController diff --git a/contao/config/config.php b/contao/config/config.php index e3d09e9..3e307f3 100644 --- a/contao/config/config.php +++ b/contao/config/config.php @@ -62,6 +62,6 @@ $scopeMatcher = System::getContainer()->get('contao.routing.scope_matcher'); if ($request && $scopeMatcher->isBackendRequest($request)) { - $GLOBALS['TL_CSS'][] = $assetsDir.'/css/sf_moderation.scss|static'; - $GLOBALS['TL_CSS'][] = $assetsDir.'/css/backend.css|static'; + $GLOBALS['TL_CSS'][] = $assetsDir.'/css/sf_moderation.min.css|static'; + $GLOBALS['TL_CSS'][] = $assetsDir.'/css/backend.min.css|static'; } diff --git a/contao/templates/be/be_sf_moderate.html5 b/contao/templates/be/be_sf_moderate.html5 index 56fad1d..e102897 100644 --- a/contao/templates/be/be_sf_moderate.html5 +++ b/contao/templates/be/be_sf_moderate.html5 @@ -1,5 +1,5 @@