Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies to make it compatible with Magento 2.4.6 #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

CoutoDev
Copy link

I was trying to use this module on my local installed Magento 2 store, but I got a few errors related to dependencies versions that seems to be incompatible with version 2.4.6.
Not sure if I did the right thing, but using locally with this modifications at least make it possible to install as a dependency on the Magento 2 project.
I just still unable to use the bin/codegen CLI outside the vender folder, and apparently it doesn't run this way. So, still needing some improvements here.

@jonatanaxe
Copy link

jonatanaxe commented Jul 21, 2023

I also have problems with Tester Trait, I'm trying to install global.

Fatal error: Lingaro\Magento2Codegen\Util\Symfony\CommandTester and Symfony\Component\Console\Tester\TesterTrait define the same property ($input) in the composition of Lingaro\Magento2Codegen\Util\Symfony\CommandTester. However, the definition differs and is considered incompatible. Class was composed in /home/devilbox/.composer/vendor/lingaro/magento2-codegen/src/Lingaro/Magento2Codegen/Util/Symfony/CommandTester.php on line 20

image

@michalbiarda
Copy link
Contributor

I also have problems with Tester Trait, I'm trying to install global.

Fatal error: Lingaro\Magento2Codegen\Util\Symfony\CommandTester and Symfony\Component\Console\Tester\TesterTrait define the same property ($input) in the composition of Lingaro\Magento2Codegen\Util\Symfony\CommandTester. However, the definition differs and is considered incompatible. Class was composed in /home/devilbox/.composer/vendor/lingaro/magento2-codegen/src/Lingaro/Magento2Codegen/Util/Symfony/CommandTester.php on line 20

@jonatanaxe I had the same issue. As a workaround you can fix it by adding the following to your composer.json:

"conflict": {
    "symfony/console": ">=5.4"
}

@benjamenjohnsondev
Copy link

benjamenjohnsondev commented Nov 8, 2023

I was trying to use this module on my local installed Magento 2 store, but I got a few errors related to dependencies versions that seems to be incompatible with version 2.4.6. Not sure if I did the right thing, but using locally with this modifications at least make it possible to install as a dependency on the Magento 2 project. I just still unable to use the bin/codegen CLI outside the vender folder, and apparently it doesn't run this way. So, still needing some improvements here.

Installing this branch globally works well, thanks!

composer.json:

{
    "require": {
        "lingaro/magento2-codegen": "dev-master"
    },
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/CoutoDev/magento2-module-codegen"
        }
    ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants