Skip to content

Commit 5f11917

Browse files
pimcore5 migration
1 parent 30bf620 commit 5f11917

File tree

115 files changed

+9018
-7523
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+9018
-7523
lines changed

.editorconfig

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_style = space
7+
indent_size = 4
8+
9+
[*.php]
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
13+
[*.md]
14+
trim_trailing_whitespace = false
15+
16+
[*.yml]
17+
indent_size = 4
18+
19+
[composer.json]
20+
indent_style = space
21+
indent_size = 2

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
* -text

.gitignore

Whitespace-only changes.

License.md

+694
Large diffs are not rendered by default.

README.md

+30-2
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,46 @@
44

55
To update the plugin please use the following command
66
```
7-
composer update pimcore-plugins/ProcessManager; php pimcore/cli/console.php process-manager:update
7+
composer update elements/process-manager-bundle; php pimcore/cli/console.php process-manager:update
88
```
99

1010
## Release notes
1111
Take a look at the tags :-)
1212
## Introduction
1313

14-
> The ProcessManager allows you to manage (define,execute...) arbitrary processes/commands in the Pimcore backend.
14+
> The ProcessManager allows you to manage (define,execute...) arbitrary processes/commands in the Pimcore backend.
1515
You can display the execution progress of the script in the Admin interface and the user can view the detailed log information.
1616
In addition you can define "actions" - e.g. a download of a file after the process has finished. Furthermore callback actions are available and the processes are monitored (you get an email if a process dies)
1717

1818
[For detailed information take a look at the Wiki](https://gitlab.elements.at/pimcore-plugins/ProcessManager/wikis/home)
1919

2020
## Development Instance
2121
> https://objecttools.elements.zone/admin/
22+
23+
## Migration from Pimcore 4 to Pimcore 5
24+
25+
* Create a backup of the following tables
26+
** plugin_process_manager_callback_setting
27+
** plugin_process_manager_configuration
28+
** plugin_process_manager_monitoring_item
29+
* Update to Pimcore 5 first
30+
* Install the bundle
31+
* The location of the plugin configuration file has changed.
32+
If you can't find it at var/config/plugin-process-manager.php then copy your existing version to that directory.
33+
34+
* The location of file log files has changed. If you want to rescue them copy them from
35+
/website/var/log/process-manager to /var/logs/process-manager
36+
37+
* The tmp directory has changed. It is now located at /var/tmp
38+
Please note that you may have to adapt your configurations.
39+
40+
* The last step is to migrate the process mananager tables stored in the database.
41+
Execute the elementsprocessmanager:migrate console command. If you need additional mappings just adapt the Migrator class to your needs.
42+
43+
Watch for messages like this one:
44+
45+
pimcore-5@pimcore:~/www$ php bin/console process-manager:migrate
46+
do not have mapping for \ProcessManager\Executor\Action\Download
47+
48+
If there is a mapping missing, add it to the Migrator class.
49+

composer.json

+18-11
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
{
2-
"name": "pimcore-plugins/ProcessManager",
3-
"type": "pimcore-plugin",
4-
"require": {
5-
"pimcore/installer-plugin": ">=1",
6-
"mtdowling/cron-expression": "1.1.0"
7-
},
8-
"autoload": {
9-
"psr-4": {
10-
"ProcessManager\\": "lib"
11-
}
2+
"name": "elements/process-manager-bundle",
3+
"type": "pimcore-bundle",
4+
"require": {
5+
"pimcore/core-version": ">=5.0.0-alpha.1",
6+
"mtdowling/cron-expression": "1.1.0"
7+
},
8+
"autoload": {
9+
"psr-4": {
10+
"": "src"
1211
}
13-
}
12+
},
13+
"extra": {
14+
"pimcore": {
15+
"bundles": [
16+
"Elements\\Bundle\\ProcessManagerBundle\\ElementsProcessManagerBundle"
17+
]
18+
}
19+
}
20+
}

controllers/CallbackSettingsController.php

-77
This file was deleted.

controllers/ConfigController.php

-146
This file was deleted.

0 commit comments

Comments
 (0)