Closed hugopeek closed 2 years ago
This happens because it's using the ChoiceQuestion
class that's shipped with MODX 3.
Gitify loads MODX, it does so by requiring a file: https://github.com/modmore/Gitify/blob/15caf4182fc90499b117d99ec0a11e9c72adb67b/src/Gitify.php#L77
In 3.x this file only exists for BC purposes and will autoload the dependencies that are required for 3.x. https://github.com/modxcms/revolution/blob/a5774ed353d41cb4b0b8bbf15efb00916d438435/core/model/modx/modx.class.php#L24
MODX 3 rc-2 appears to be shipping an older version of symfony/console
.
With the latest nightly the backup and restore commands work as expected! @Mark-H I think we can close this issue.
Can you confirm this works for you with 3.0.0-pl, @hugopeek?
Sorry for the late response. Yes, it's working flawlessly again on 3.0.0 and 3.0.1. Thanks guys!
Summary
The
gitify restore
command is throwing a fatal error when used in a MODX 3 project (3.0.0-rc2 in my case).Step to reproduce
Run the following commands:
Observed behavior
The following error is thrown:
Expected behavior
The restore command runs without issue in a 2.x install.
Environment
Gitify 2.0.0-alpha1 MODX 3.0.0-rc2 Debian 12 MariaDB 10.6.7, PHP 7.4, Nginx 1.18.0