symfony
symfony copied to clipboard
Not Working with PHP8.1 and Symfony6
Hi all
I was trying to update the bundle but I got these errors
- backup-manager/symfony 3.2.0 requires php ^7.3 -> your php version (8.1.6) does not satisfy that requirement.
- backup-manager/symfony 3.2.1 requires symfony/config ^3.4 || ^4.4 || ^5.0 -> found symfony/config[v3.4.0, ..., v3.4.47, v4.4.0, ..., v4.4.41, v5.0.0, ..., v5.4.8] but the package is fixed to v6.0.8 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- Root composer.json requires backup-manager/symfony ^3.2 -> satisfiable by backup-manager/symfony[3.2.0, 3.2.1].
I saw in the Issues Closed what it was working with this environment. Any idea?
Thanks
@fcerezo I think the Symfony 6 support only exists in development state currently, so composer require backup-manager/symfony:3.2.x-dev
should work. though it is not perfect. I would prefer a corresponding release (I created a corresponding issue https://github.com/backup-manager/symfony/issues/90).
It doesnt work.
Problem 1 - backup-manager/backup-manager 3.0 requires symfony/process ^3.0 || ^4 || ^5 -> found symfony/process[v3.0.0, ..., v3.4.47, v4.0.0, ..., v4.4.41, v5.0.0, ..., v5.4.8] but it conflicts with your root composer.json require (6.0.). - backup-manager/backup-manager 3.0.1 requires symfony/process ^4 || ^5 -> found symfony/process[v4.0.0, ..., v4.4.41, v5.0.0, ..., v5.4.8] but it conflicts with your root composer.json require (6.0.). - backup-manager/symfony 3.2.x-dev is an alias of backup-manager/symfony dev-master and thus requires it to be installed too. - backup-manager/symfony dev-master requires backup-manager/backup-manager ^3.0 -> satisfiable by backup-manager/backup-manager[3.0, 3.0.1]. - Root composer.json requires backup-manager/symfony 3.2.x-dev -> satisfiable by backup-manager/symfony[3.2.x-dev (alias of dev-master)].
Any idea?
Ok. It seems that symfony/process is required by the base dependency backup-manager/backup-manager in 3.x or 4.x or 5.x, so it still fails. However, the issue is actually with the base dependency.
to be honest after doing some more searching (especially on base dependency) it seems like the whole project is kind of dead.
@fcerezo I can't guarantee that this will work but someone forked the original backup-manager and added PHP 8 support tetc, so this might work (though it isn't a good solution and not sure how stable). As mentioned above this seems kind of dead (at least the base project). Probably better to search for a good alternative.
- add to composer.json:
"provide": {
"backup-manager/backup-manager": "3.0.1"
}
- composer require backup-manager/symfony:^3.2.x-dev fezfez/backup-manager
- or maybe it is necessary to do: composer require backup-manager/symfony:^3.2.x-dev fezfez/backup-manager-league-flysystem-v1
- or maybe: composer require backup-manager/symfony:^3.2.x-dev fezfez/backup-manager-league-flysystem-v3
- any of those will probably install but if it actually works probably requires some testing,
However, I would discourage doing it this way. Not sure how stable it would be and as there has been no recent activity here or in the base backup-manager dependency, it is probably better to either search for a different bundle or just create a command that runs a mysqldump (or equivalent) process. I found e.g. this bundle for mysql backups only https://github.com/Symandy/DatabaseBackupBundle However, it is extremely new and I am not sure how well it works and I don't really know the developer (though that doesn't mean it is bad) and there might be better ones.
Hello, an update of backup-manager/backup-manager has just been release. Is it helping in some matter ? Can we expect soon a release with php8 support and symfony 6 ? :)