Skip to content

Commit

Permalink
Merge pull request #15 from pimcore/11.x-from-7113486479
Browse files Browse the repository at this point in the history
Automated PR
  • Loading branch information
herbertroth authored Dec 6, 2023
2 parents 9c953cb + 16b0447 commit 4145da6
Show file tree
Hide file tree
Showing 187 changed files with 718 additions and 280 deletions.
12 changes: 2 additions & 10 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<!--
Before working on a contribution, you must determine on which branch you need to work:
- Bug fix: choose the latest maintenance branch `10.5`
- Bug fix: choose the latest maintenance branch `11.1`
- Feature/Improvement: choose `11.x`
> All bug fixes merged into the latest maintenance branch are also merged to the current dev branch (`11.x`) on a regular basis.
## Please make sure your PR complies with all of the following points:
- [ ] Read and accept our [contributing guidelines](/CONTRIBUTING.md) before you submit a PR.
- [ ] Features need to be proper documented in `doc/`
- [ ] Bugfixes need a short guide how to reproduce them -> target branch is the oldest supported maintenance branch, e.g. `10.5` (see Readme.md for the list of supported versions)
- [ ] Bugfixes need a short guide how to reproduce them -> target branch is the oldest supported maintenance branch, e.g. `11.1` (see Readme.md for the list of supported versions)
- [ ] Meet all coding standards (see PhpStan actions)
**Don't submit a PR if it doesn't comply, it'll be closed without a comment!**
Expand All @@ -20,11 +20,3 @@ Before working on a contribution, you must determine on which branch you need to
Resolves #

## Additional info

### WHAT
copilot:summary

copilot:poem

### HOW
copilot:walkthrough
25 changes: 0 additions & 25 deletions .github/workflows/clone-branch.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/lts-repo-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name: "LTS repository sync"

on:
workflow_dispatch:
push:
branches:
- 11.x
#push:
# branches:
# - 11.x

permissions:
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-checklist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
env:
MESSAGE: |
### Review Checklist
- [ ] Target branch (`11.0` for bug fixes, others `11.x`)
- [ ] Target branch (`11.1` for bug fixes, others `11.x`)
- [ ] Tests (if it's testable code, there should be a test for it - [get help](https://pimcore.com/docs/pimcore/current/Development_Documentation/Development_Tools_and_Details/Testing/Core_Tests.html))
- [ ] Docs (every functionality needs to be documented, [see here](https://github.com/pimcore/pimcore/tree/11.x/doc))
- [ ] [Migration](https://pimcore.com/docs/pimcore/current/Development_Documentation/Development_Tools_and_Details/Migrations.html) incl. `install.sql` (e.g. if the database schema changes, ...)
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/sync-changes-scheduled.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Sync changes scheduled from CE to EE
on:
workflow_dispatch:
schedule:
- cron: '30 21 * * *'

jobs:
clone-branch:
uses: pimcore/workflows-collection-public/.github/workflows/[email protected]
if: github.repository == 'pimcore/pimcore'
strategy:
fail-fast: false
matrix:
ref: [{'base': '11.x', 'destination': '11.x'}, {'base': '11.1', 'destination': '11.1'}, {'base': '10.6', 'destination': '10.6'}]
with:
base_ref: ${{ matrix.ref.base }}
ref_name: ${{ matrix.ref.destination }}
target_repo: 'ee-pimcore'
secrets:
SYNC_TOKEN: ${{ secrets.SYNC_TOKEN }}
GIT_NAME: ${{ secrets.GIT_NAME }}
GIT_EMAIL: ${{ secrets.GIT_EMAIL }}
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ We gladly accept community pull requests. This is the preferred way to contribut
There are a few necessary steps before we can accept a pull request:

* [Fork us!](https://help.github.com/articles/fork-a-repo/)
* Select the right branch. `main`(`11.x`) for features and improvements or latest maintenance branch for bug fixes (`11.0`)
* Select the right branch. `main`(`11.x`) for features and improvements or latest maintenance branch for bug fixes (`11.1`)
* Code! Follow the coding standards defined [here](https://github.com/pimcore/pimcore/blob/11.x/.php-cs-fixer.dist.php) and [here](https://github.com/pimcore/pimcore/blob/11.x/doc/19_Development_Tools_and_Details/29_Testing/02_Core_Tests.md#perform-phpstan-analysis)
* [Send a pull request](https://help.github.com/articles/using-pull-requests/) from your fork’s branch to our repo branch.
* [Sign the CLA](https://cla-assistant.io/pimcore/pimcore) - see also below.
Expand Down
3 changes: 2 additions & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
If you think that you have found a security issue,
don’t use the bug tracker and don’t publish it publicly.
Instead, all security issues must be reported via a private vulnerability report.
Additionally, we also check issues reported via [huntr.dev](https://huntr.dev/repos/pimcore/pimcore/).

Please follow the [instructions](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing-information-about-vulnerabilities/privately-reporting-a-security-vulnerability#privately-reporting-a-security-vulnerability) to submit a private report.


## Resolving Process
Expand Down
2 changes: 1 addition & 1 deletion bundles/ApplicationLoggerBundle/translations/admin.ca.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ log_applicationlog: Application Logger
log_search_component: Component
log_search_pid: PID
log_refresh_seconds: Seconds
keybinding_application_logger: Application logger
log_search_from: From
log_search_to: To
log_type: Type
Expand All @@ -22,4 +21,5 @@ log_message: Message
log_reset_search: Reset
log_search: Search
log_search_message: Message
keybinding_applicationLogger: Application logger
...
2 changes: 1 addition & 1 deletion bundles/ApplicationLoggerBundle/translations/admin.cs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ log_applicationlog: Application Logger
log_search_component: Component
log_search_pid: PID
log_refresh_seconds: Seconds
keybinding_application_logger: Application logger
log_search_from: From
log_search_to: To
log_type: Type
Expand All @@ -22,4 +21,5 @@ log_message: Message
log_reset_search: Reset
log_search: Search
log_search_message: Message
keybinding_applicationLogger: Application logger
...
2 changes: 1 addition & 1 deletion bundles/ApplicationLoggerBundle/translations/admin.de.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ log_applicationlog: Anwendungslogger
log_search_component: Komponente
log_search_pid: PID
log_refresh_seconds: Sekunden
keybinding_application_logger: Anwendungslogger
log_search_from: Von
log_search_to: An
log_type: Typ
Expand All @@ -22,4 +21,5 @@ log_message: Nachricht
log_reset_search: "Zur\xFCcksetzen"
log_search: Suche
log_search_message: Nachricht
keybinding_applicationLogger: Application logger
...
2 changes: 1 addition & 1 deletion bundles/ApplicationLoggerBundle/translations/admin.es.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ log_applicationlog: Application Logger
log_search_component: Component
log_search_pid: PID
log_refresh_seconds: Seconds
keybinding_application_logger: Application logger
log_search_from: From
log_search_to: To
log_type: Type
Expand All @@ -22,4 +21,5 @@ log_message: Message
log_reset_search: Reset
log_search: Search
log_search_message: Message
keybinding_applicationLogger: Application logger
...
2 changes: 1 addition & 1 deletion bundles/ApplicationLoggerBundle/translations/admin.fr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ log_applicationlog: Journal applicatif
log_search_component: Composant
log_search_pid: PID
log_refresh_seconds: Secondes
keybinding_application_logger: Application logger
log_search_from: De
log_search_to: "\xC0"
log_type: Type
Expand All @@ -22,4 +21,5 @@ log_message: Message
log_reset_search: "R\xE9initialiser"
log_search: Rechercher
log_search_message: Message
keybinding_applicationLogger: Application logger
...
2 changes: 1 addition & 1 deletion bundles/ApplicationLoggerBundle/translations/admin.hu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ log_applicationlog: "Alkalmaz\xE1snapl\xF3"
log_search_component: Component
log_search_pid: PID
log_refresh_seconds: Seconds
keybinding_application_logger: Application logger
log_search_from: From
log_search_to: To
log_type: Type
Expand All @@ -22,4 +21,5 @@ log_message: Message
log_reset_search: Reset
log_search: Search
log_search_message: Message
keybinding_applicationLogger: Application logger
...
2 changes: 1 addition & 1 deletion bundles/ApplicationLoggerBundle/translations/admin.it.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ log_applicationlog: Application Logger
log_search_component: Component
log_search_pid: PID
log_refresh_seconds: Seconds
keybinding_application_logger: Application logger
log_search_from: From
log_search_to: To
log_type: Type
Expand All @@ -22,4 +21,5 @@ log_message: Message
log_reset_search: Reset
log_search: Search
log_search_message: Message
keybinding_applicationLogger: Application logger
...
2 changes: 1 addition & 1 deletion bundles/ApplicationLoggerBundle/translations/admin.nl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ log_applicationlog: Application Logger
log_search_component: Component
log_search_pid: PID
log_refresh_seconds: Seconds
keybinding_application_logger: Application logger
log_search_from: From
log_search_to: To
log_type: Type
Expand All @@ -22,4 +21,5 @@ log_message: Message
log_reset_search: Reset
log_search: Search
log_search_message: Message
keybinding_applicationLogger: Application logger
...
2 changes: 1 addition & 1 deletion bundles/ApplicationLoggerBundle/translations/admin.pl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ log_applicationlog: Application Logger
log_search_component: Component
log_search_pid: PID
log_refresh_seconds: Seconds
keybinding_application_logger: Application logger
log_search_from: From
log_search_to: To
log_type: Type
Expand All @@ -22,4 +21,5 @@ log_message: Message
log_reset_search: Reset
log_search: Search
log_search_message: Message
keybinding_applicationLogger: Application logger
...
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ log_applicationlog: Application Logger
log_search_component: Component
log_search_pid: PID
log_refresh_seconds: Seconds
keybinding_application_logger: Application logger
log_search_from: From
log_search_to: To
log_type: Type
Expand All @@ -22,4 +21,5 @@ log_message: Message
log_reset_search: Reset
log_search: Search
log_search_message: Message
keybinding_applicationLogger: Application logger
...
2 changes: 1 addition & 1 deletion bundles/ApplicationLoggerBundle/translations/admin.ro.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ log_applicationlog: Application Logger
log_search_component: Component
log_search_pid: PID
log_refresh_seconds: Seconds
keybinding_application_logger: Application logger
log_search_from: From
log_search_to: To
log_type: Type
Expand All @@ -22,4 +21,5 @@ log_message: Message
log_reset_search: Reset
log_search: Search
log_search_message: Message
keybinding_applicationLogger: Application logger
...
2 changes: 1 addition & 1 deletion bundles/ApplicationLoggerBundle/translations/admin.sk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ log_applicationlog: Application Logger
log_search_component: Component
log_search_pid: PID
log_refresh_seconds: Seconds
keybinding_application_logger: Application logger
log_search_from: From
log_search_to: To
log_type: Type
Expand All @@ -22,4 +21,5 @@ log_message: Message
log_reset_search: Reset
log_search: Search
log_search_message: Message
keybinding_applicationLogger: Application logger
...
2 changes: 1 addition & 1 deletion bundles/ApplicationLoggerBundle/translations/admin.sv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ log_applicationlog: Application Logger
log_search_component: Component
log_search_pid: PID
log_refresh_seconds: Seconds
keybinding_application_logger: Application logger
log_search_from: "Fr\xE5n"
log_search_to: Till
log_type: Typ
Expand All @@ -22,4 +21,5 @@ log_message: Meddelande
log_reset_search: Reset
log_search: Search
log_search_message: Meddelande
keybinding_applicationLogger: Application logger
...
2 changes: 1 addition & 1 deletion bundles/ApplicationLoggerBundle/translations/admin.th.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ log_applicationlog: Application Logger
log_search_component: Component
log_search_pid: PID
log_refresh_seconds: Seconds
keybinding_application_logger: Application logger
log_search_from: From
log_search_to: To
log_type: Type
Expand All @@ -23,4 +22,5 @@ log_message: Message
log_reset_search: Reset
log_search: Search
log_search_message: Message
keybinding_applicationLogger: Application logger
...
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ log_applicationlog: Application Logger
log_search_component: Component
log_search_pid: PID
log_refresh_seconds: Seconds
keybinding_application_logger: Application logger
log_search_from: From
log_search_to: To
log_type: Type
Expand All @@ -22,4 +21,5 @@ log_message: Message
log_reset_search: Reset
log_search: Search
log_search_message: Message
keybinding_applicationLogger: Application logger
...
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

namespace Pimcore\Bundle\CoreBundle\Command;

use Pimcore\Cache;
use Pimcore\Console\AbstractCommand;
use Pimcore\DataObject\ClassBuilder\PHPClassDumperInterface;
use Pimcore\DataObject\ClassBuilder\PHPFieldCollectionClassDumperInterface;
Expand Down Expand Up @@ -49,15 +50,13 @@ public function __construct(

protected function execute(InputInterface $input, OutputInterface $output): int
{
$cacheStatus = \Pimcore\Cache::isEnabled();
\Pimcore\Cache::disable();
$cacheStatus = Cache::isEnabled();
Cache::disable();
$objectClassesFolders = array_unique([PIMCORE_CLASS_DEFINITION_DIRECTORY, PIMCORE_CUSTOM_CONFIGURATION_CLASS_DEFINITION_DIRECTORY]);

foreach ($objectClassesFolders as $objectClassesFolder) {
$files = glob($objectClassesFolder.'/*.php');

$changes = [];

foreach ($files as $file) {
$class = include $file;

Expand All @@ -84,7 +83,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
}

if ($cacheStatus) {
\Pimcore\Cache::enable();
Cache::enable();
}

return 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ public function process(ContainerBuilder $container): void
if (isset($markingStoreDefinition)) {
$workflowDefinition->replaceArgument(1, $markingStoreDefinition);
}
$workflowDefinition->setPublic(true);
$workflowDefinition->replaceArgument(3, $workflowName);
$workflowDefinition->replaceArgument(4, $workflowConfig['events_to_dispatch'] ?? null);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -362,13 +362,9 @@ private function responseCanBeCached(Response $response): bool
{
$cache = true;

// do not cache when the application indicated one of the 'no-cache' directives in the response Cache-Control header
foreach (['no-cache', 'private', 'no-store'] as $directive) {
if ($response->headers->getCacheControlDirective($directive)) {
$cache = false;

break;
}
// do not cache when the application indicated the 'no-store' directives in the response Cache-Control header
if ($response->headers->hasCacheControlDirective('no-store')) {
$cache = false;
}

// do not cache common responses
Expand Down
2 changes: 1 addition & 1 deletion bundles/CustomReportsBundle/translations/admin.de.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ reports: Berichte
custom_report_permissions: Berechtigung
keybinding_customReports: Benutzerdefinierte Berichte
keybinding_reports: Bericht
mandatory_fields_missing: 'Please fill in the following mandatory fields:'
mandatory_fields_missing: "Bitte f\xFCllen Sie die folgenden Pflichtfelder aus:"
...
Loading

0 comments on commit 4145da6

Please sign in to comment.