TYPO3 / Surf

Easy and powerful PHP deployment tool
https://docs.typo3.org/other/typo3/surf/master/en-us/
GNU General Public License v3.0
98 stars 53 forks source link

Update version constraint for new symfony/dependency-injection #796

Open dbitsch-no opened 2 months ago

dbitsch-no commented 2 months ago

Hello,

when trying to require your extension I get the following error in composer:

Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - typo3/surf dev-main requires symfony/dependency-injection ^5.0 || ^6.0 -> found symfony/dependency-injection[v5.0.0, ..., v5.4.42, v6.0.0, ..., v6.4.10] but the package is fixed to v7.1.3 (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.
    - typo3/surf 3.x-dev is an alias of typo3/surf dev-main and thus requires it to be installed too.
    - Root composer.json requires typo3/surf 3.x-dev -> satisfiable by typo3/surf[3.x-dev (alias of dev-main)].

Would be great to see support for the new version of the symfony package.

Dennis

simonschaufi commented 2 months ago

I'm aware of the incompatibility but making Surf compatible with the latest Symfony DI is quite complicated. I'm very happy if somebody would help here.

The main Problem is that the container Trait is gone:

PHP Fatal error:  Trait "Symfony\Component\DependencyInjection\ContainerAwareTrait" not found in /home/runner/work/Surf/Surf/src/Domain/Model/Deployment.php on line 29