Skip to content

Commit

Permalink
refactor: Pimcore X compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
dvonrohr committed Nov 17, 2021
1 parent f7d5c30 commit 6dd1295
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
A pretty nice way to expose your Pimcore shared translation messages to your client applications.

## Requirements
* Pimcore 5.8 or 6.0
* Pimcore 10
* Bazinga JS Translation 2.0

## Documentation
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
],
"require": {
"matthiasmullie/minify": "^1.0",
"pimcore/pimcore": "^5.8 | ^6.3"
"pimcore/pimcore": "^10.0"
},
"require-dev": {
"phpstan/phpstan": "^0.11.19",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* For the full copyright and license information, please view the LICENSE.md and gpl-3.0.txt
* files that are distributed with this source code.
*
* @copyright Copyright (c) 2020 w-vision AG (https://www.w-vision.ch)
* @copyright Copyright (c) 2021 w-vision AG (https://www.w-vision.ch)
* @license https://github.com/w-vision/PimcoreJsTranslationBundle/blob/master/LICENSE GNU General Public License version 3 (GPLv3)
*/

Expand Down Expand Up @@ -83,7 +83,7 @@ public function getTranslationsAction(Request $request, string $format): Respons

$translations = [];

$translationList = new Translation\Website\Listing();
$translationList = new Translation\Listing();
$translationList->setOrderKey('key');
$translationList->setOrder('asc');
$translationList->load();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ or also use the Pimcore bundle manager.
$ php bin/console pimcore:bundle:enable PimcoreJsTranslationBundle
```

``` bash
$ php bin/console pimcore:bundle:install PimcoreJsTranslationBundle
```

**Important:** Don't forget to clear the cache and reload the Pimcore interface after you've done that.

### Continue to the next step!
Expand Down

0 comments on commit 6dd1295

Please sign in to comment.