Skip to content

Commit 7706414

Browse files
authored
Merge pull request #14 from pimcore/11.1-from-7113486479
Automated PR
2 parents db09d25 + 92770c3 commit 7706414

File tree

27 files changed

+100
-83
lines changed

27 files changed

+100
-83
lines changed

bundles/CoreBundle/src/Command/ClassesDefinitionsBuildCommand.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
namespace Pimcore\Bundle\CoreBundle\Command;
1818

19+
use Pimcore\Cache;
1920
use Pimcore\Console\AbstractCommand;
2021
use Pimcore\DataObject\ClassBuilder\PHPClassDumperInterface;
2122
use Pimcore\DataObject\ClassBuilder\PHPFieldCollectionClassDumperInterface;
@@ -49,15 +50,13 @@ public function __construct(
4950

5051
protected function execute(InputInterface $input, OutputInterface $output): int
5152
{
52-
$cacheStatus = \Pimcore\Cache::isEnabled();
53-
\Pimcore\Cache::disable();
53+
$cacheStatus = Cache::isEnabled();
54+
Cache::disable();
5455
$objectClassesFolders = array_unique([PIMCORE_CLASS_DEFINITION_DIRECTORY, PIMCORE_CUSTOM_CONFIGURATION_CLASS_DEFINITION_DIRECTORY]);
5556

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

59-
$changes = [];
60-
6160
foreach ($files as $file) {
6261
$class = include $file;
6362

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

8685
if ($cacheStatus) {
87-
\Pimcore\Cache::enable();
86+
Cache::enable();
8887
}
8988

9089
return 0;

bundles/CoreBundle/src/DependencyInjection/Compiler/WorkflowPass.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ public function process(ContainerBuilder $container): void
181181
if (isset($markingStoreDefinition)) {
182182
$workflowDefinition->replaceArgument(1, $markingStoreDefinition);
183183
}
184+
$workflowDefinition->setPublic(true);
184185
$workflowDefinition->replaceArgument(3, $workflowName);
185186
$workflowDefinition->replaceArgument(4, $workflowConfig['events_to_dispatch'] ?? null);
186187

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,8 @@
137137
"require-dev": {
138138
"codeception/codeception": "^5.0.3",
139139
"codeception/module-symfony": "^3.1.0",
140-
"codeception/phpunit-wrapper": "^9",
141140
"ergebnis/phpstan-rules": "^2.0",
142-
"phpstan/phpstan": "1.10.43",
141+
"phpstan/phpstan": "1.10.46",
143142
"phpstan/phpstan-symfony": "^1.3.5",
144143
"phpunit/phpunit": "^9.3",
145144
"gotenberg/gotenberg-php": "^1.1",

doc/01_Getting_Started/00_Installation/00_Docker_Based_Installation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ If you choose to install backend search (which is installed by default), you mus
4343
:::
4444

4545
5. :heavy_check_mark: DONE - You can now visit your pimcore instance:
46-
* The frontend: <http://localhost>
46+
* The frontend: [localhost](http://localhost)
4747
* The admin interface, using the credentials you have chosen above:
48-
<http://localhost/admin>
48+
[Admin interface](http://localhost/admin)
4949

5050

5151
## Caching

doc/02_MVC/04_Routing_and_URLs/02_Custom_Routes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ to do so just embrace the part with curly brackets { } (see example below).
113113

114114
| Name | Pattern | Reverse | Controller | Variables | Defaults | Site IDs | Priority | Methods |
115115
|----------|------------------------|------------------|-----------------------------------------------|-----------|--------------|----------|--------------|-------------|
116-
| news category | /\\/news-category\\/([^_]+)_([0-9]+)(_category_)?([0-9]+)?/ | /news-category/%text_%id{_category_%categoryId} | App\Controller\NewsController::listingAction | text,id,text2,categoryId | | | 1 | |
116+
| news category | /\\/news-category\\/([^_]+)_([0-9]+)(_category_)?([0-9]+)?/ | /news-category/%text_%id\{_category_%categoryId\} | App\Controller\NewsController::listingAction | text,id,text2,categoryId | | | 1 | |
117117

118118
![Grid with the new route](../../img/Routing_grid2.png)
119119

doc/03_Documents/01_Editables/02_Areablock/02_Bricks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ as registered on the areabrick manager (see below).
9292
| Location | Path |
9393
|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
9494
| global | `templates/areas/<brickId>/` |
95-
| bundle | `<bundlePath>/Resources/views/areas/<brickId>/` for legacy (Symfony <= 4) bundle structure<br/>or<br/>`<bundlePath>/templates/areas/<brickId>/` for modern (Symfony >= 5) bundle structure |
95+
| bundle | `<bundlePath>/Resources/views/areas/<brickId>/` for legacy (Symfony \<= 4) bundle structure<br/>or<br/>`<bundlePath>/templates/areas/<brickId>/` for modern (Symfony >= 5) bundle structure |
9696

9797
Depending on the template location, the following files will be used. You can always completely control locations by
9898
implementing the methods for templates and icon yourself (see `AreabrickInterface`):

doc/03_Documents/01_Editables/02_Areablock/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ And you can see the effect, below:
7070
| `manual` | bool | Forces the manual mode, which enables a complete free implementation for areablocks, for example using real `<table>` elements... example see below |
7171
| `reload` | bool | Set to `true`, to force a reload in editmode after reordering items (default: `false`) |
7272
| `limit` | int | Limit the amount of elements |
73-
| `limits` | array | An array of area-ID's with count to limit the amount of certain elements e.g. {"iframe": 1, "teasers": 2} |
73+
| `limits` | array | An array of area-ID's with count to limit the amount of certain elements e.g. \{"iframe": 1, "teasers": 2\} |
7474
| `areablock_toolbar` | array | Array with option that allows you to configure the toolbar. Possible options are `width`, `buttonWidth` and `buttonMaxCharacters` |
7575
| `controlsAlign` | string | The position of the control button bar. Options are: `top`, `right` and `left`. |
7676
| `controlsTrigger` | string | Options are: `hover`(default) and `fixed` . |

doc/03_Documents/01_Editables/40_WYSIWYG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,5 @@ framework:
5454
```
5555
If you want to adapt this configuration please have a look at the [symfony documentation](https://symfony.com/doc/current/html_sanitizer.html). Add your custom configuration to you project, e.g. to `config/packages/html_sanitizer.yaml`
5656

57-
> Note: When using API to set WYSIWYG data, please pass encoded characters for html entities e.g. <,>, & etc.
58-
> The data is encoded by the sanitizer before persisting into db and the same encoded data will be returned by the API.
57+
> Note: When using API to set WYSIWYG data, please pass encoded characters for html entities e.g. `<`,`>`, `&` etc.
58+
> The data is encoded by the sanitizer before persisting into db and the same encoded data will be returned by the API.

doc/19_Development_Tools_and_Details/07_Logging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pimcore:
4444
| 2 | User-ID |
4545
| Pimcore\Bundle\AdminBundle\Controller\Admin\Document\PageController::saveAction | Module\Controller::Action |
4646
| pimcore_admin_document_page_save | Route name |
47-
| {"task":"pub .... | Request Parameters (shortened & censored) |
47+
| \{"task":"pub .... \} | Request Parameters (shortened & censored) |
4848
4949
## redirect.log
5050
Sometimes it's necessary to debug redirects, for example when a redirect ends in an infinite loop.

doc/19_Development_Tools_and_Details/40_Custom_Admin_Login_Entry_Point.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pimcore_admin:
99
```
1010
> Please note:
1111
> custom_admin_path_identifier should be at least 20 characters long
12-
> and must not start with `/admin` if Pimcore version <= 6.0.5 !
12+
> and must not start with `/admin` if Pimcore version \<= 6.0.5 !
1313

1414
Add custom entry for `PimcoreCoreBundle:PublicServices:customAdminEntryPoint` in your routing.yaml:
1515
```yaml

0 commit comments

Comments
 (0)