-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
65 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,6 @@ | ||
# Upgrade Notes | ||
|
||
## 2.1.1 | ||
- [BUGFIX] Improve fallback when parsing the date [#9](https://github.com/dachcom-digital/pimcore-social-data-facebook-connector/issues/9) | ||
|
||
## 2.1.0 | ||
- [BUGFIX] Use Page Access Token [#6](https://github.com/dachcom-digital/pimcore-social-data-facebook-connector/issues/6) | ||
|
||
## Migrating from Version 1.x to Version 2.0.0 | ||
## Migrating from Version 2.x to Version 3.0.0 | ||
|
||
### Global Changes | ||
- ⚠️ You need to set `framework.session.cookie_samesite` to `lax`, otherwise the OAuth connection won't work | ||
- PHP8 return type declarations added: you may have to adjust your extensions accordingly | ||
- Library `facebookarchive/php-graph-sdk` has been removed, we're now using the `league/oauth2-facebook` package which will be installed by default | ||
- Recommended folder structure by symfony adopted |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
namespace SocialData\Connector\Facebook\EventListener\Admin; | ||
|
||
use Pimcore\Event\BundleManager\PathsEvent; | ||
use Pimcore\Event\BundleManagerEvents; | ||
use Symfony\Component\EventDispatcher\EventSubscriberInterface; | ||
|
||
class AssetListener implements EventSubscriberInterface | ||
{ | ||
public static function getSubscribedEvents(): array | ||
{ | ||
return [ | ||
BundleManagerEvents::CSS_PATHS => 'addCssFiles', | ||
BundleManagerEvents::JS_PATHS => 'addJsFiles', | ||
]; | ||
} | ||
|
||
public function addCssFiles(PathsEvent $event): void | ||
{ | ||
$event->addPaths([ | ||
'/bundles/socialdatafacebookconnector/css/admin.css' | ||
]); | ||
} | ||
|
||
public function addJsFiles(PathsEvent $event): void | ||
{ | ||
$event->addPaths([ | ||
'/bundles/socialdatafacebookconnector/js/connector/facebook-connector.js', | ||
'/bundles/socialdatafacebookconnector/js/feed/facebook-feed.js', | ||
]); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters