-
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.
Merge pull request #4 from dachcom-digital/p11
- Loading branch information
Showing
42 changed files
with
2,928 additions
and
234 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ jobs: | |
TEST_PROJECT_ROOT_DIR: "${{ github.workspace }}" | ||
|
||
PIMCORE_CODECEPTION_FRAMEWORK: "${{ github.workspace }}/pimcore-codeception-framework" | ||
PIMCORE_CODECEPTION_VERSION: "2.0" | ||
PIMCORE_CODECEPTION_VERSION: "3.0" | ||
|
||
APP_ENV: test | ||
PIMCORE_TEST_DB_DSN: "mysql://root:[email protected]:3306/dachcom_bundle_test" | ||
|
@@ -37,12 +37,12 @@ jobs: | |
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | ||
strategy: | ||
matrix: | ||
php: [ 8.1 ] | ||
symfony: [ ^5.4 ] | ||
pimcore: [ ~10.6.0 ] | ||
php: [ 8.2 ] | ||
symfony: [ ^6.2 ] | ||
pimcore: [ ~11.0.0 ] | ||
include: | ||
- pimcore: ~10.6.0 | ||
template_tag: v10.2.5 | ||
- pimcore: ~11.0.0 | ||
template_tag: v11.0.0 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
|
@@ -105,7 +105,7 @@ jobs: | |
run: | | ||
composer config "minimum-stability" "dev" | ||
composer config "prefer-stable" true | ||
sed -i 's,\("dachcom-digital\/social-data"\): "\(.*\)",\1: "2.x-dev",g' ${{ github.workspace }}/lib/test-bundle/composer.json | ||
sed -i 's,\("dachcom-digital\/social-data"\): "\(.*\)",\1: "3.x-dev",g' ${{ github.workspace }}/lib/test-bundle/composer.json | ||
chmod +x ./pimcore-codeception-framework/src/_etc/scripts/composer.sh | ||
./pimcore-codeception-framework/src/_etc/scripts/composer.sh | ||
|
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 |
---|---|---|
|
@@ -15,7 +15,7 @@ jobs: | |
TEST_PROJECT_ROOT_DIR: "${{ github.workspace }}" | ||
|
||
PIMCORE_CODECEPTION_FRAMEWORK: "${{ github.workspace }}/pimcore-codeception-framework" | ||
PIMCORE_CODECEPTION_VERSION: "2.0" | ||
PIMCORE_CODECEPTION_VERSION: "3.0" | ||
|
||
APP_ENV: test | ||
PIMCORE_TEST_DB_DSN: "mysql://root:[email protected]:3306/dachcom_bundle_test" | ||
|
@@ -37,12 +37,12 @@ jobs: | |
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | ||
strategy: | ||
matrix: | ||
php: [ 8.1 ] | ||
symfony: [ ^5.4 ] | ||
pimcore: [ ~10.6.0 ] | ||
php: [ 8.2 ] | ||
symfony: [ ^6.2 ] | ||
pimcore: [ ~11.0.0 ] | ||
include: | ||
- pimcore: ~10.6.0 | ||
template_tag: v10.2.5 | ||
- pimcore: ~11.0.0 | ||
template_tag: v11.0.0 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
|
@@ -105,7 +105,7 @@ jobs: | |
run: | | ||
composer config "minimum-stability" "dev" | ||
composer config "prefer-stable" true | ||
sed -i 's,\("dachcom-digital\/social-data"\): "\(.*\)",\1: "2.x-dev",g' ${{ github.workspace }}/lib/test-bundle/composer.json | ||
sed -i 's,\("dachcom-digital\/social-data"\): "\(.*\)",\1: "3.x-dev",g' ${{ github.workspace }}/lib/test-bundle/composer.json | ||
chmod +x ./pimcore-codeception-framework/src/_etc/scripts/composer.sh | ||
./pimcore-codeception-framework/src/_etc/scripts/composer.sh | ||
|
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,9 +1,6 @@ | ||
# Upgrade Notes | ||
|
||
## Migrating from Version 1.x to Version 2.0.0 | ||
## Migrating from Version 2.x to Version 3.0.0 | ||
|
||
### Global Changes | ||
- PHP8 return type declarations added: you may have to adjust your extensions accordingly | ||
- ⚠️ Switched to twitter API v2: | ||
- You need to create a project in twitter backoffice instead of an standalone app (https://developer.twitter.com/en/portal/projects-and-apps) | ||
- Changed feed configuration: You need to set users ID instead of screen name in feed configuration | ||
- Recommended folder structure by symfony adopted |
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
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
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
namespace SocialData\Connector\Twitter\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/socialdatatwitterconnector/css/admin.css' | ||
]); | ||
} | ||
|
||
public function addJsFiles(PathsEvent $event): void | ||
{ | ||
$event->addPaths([ | ||
'/bundles/socialdatatwitterconnector/js/connector/twitter-connector.js', | ||
'/bundles/socialdatatwitterconnector/js/feed/twitter-feed.js', | ||
]); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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,12 @@ | ||
actor: FunctionalTester | ||
modules: | ||
enabled: | ||
- \Dachcom\Codeception\Support\Helper\PimcoreCore: | ||
connect_db: true | ||
rebootable_client: true | ||
- \Dachcom\Codeception\Support\Helper\PimcoreBundleCore: | ||
run_installer: true | ||
- \Dachcom\Codeception\Support\Helper\Browser\PhpBrowser: | ||
depends: \Dachcom\Codeception\Support\Helper\PimcoreCore | ||
- \Dachcom\Codeception\Support\Helper\PimcoreBackend | ||
- \Dachcom\Codeception\Support\Helper\PimcoreUser |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
namespace DachcomBundle\Test\Support; | ||
|
||
class FunctionalTester extends \Dachcom\Codeception\Support\FunctionalTester | ||
{ | ||
use _generated\FunctionalTesterActions; | ||
} |
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,8 @@ | ||
<?php | ||
|
||
namespace DachcomBundle\Test\Support; | ||
|
||
class UnitTester extends \Dachcom\Codeception\Support\UnitTester | ||
{ | ||
use _generated\UnitTesterActions; | ||
} |
Oops, something went wrong.