To perform this task you just have two:
Magento within: https://github.com/nunomaduro/phpinsights/tree/master/src/Application/AdaptersI will implement this for Magento 2
Can be closed 馃憤
This doesn't work with Magento 2.3.*.... the dev/stable dependencies of Magento conflict with phpinsights. @larsroettig how did you run this on Magento 2.3.1?
C:\Users\JakeCasto\Desktop\Projects\kayser-roth-burlix>composer require nunomaduro/phpinsights --dev
Using version ^1.7 for nunomaduro/phpinsights
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for nunomaduro/phpinsights ^1.7 -> satisfiable by nunomaduro/phpinsights[v1.7.0].
- Conclusion: remove symfony/console v4.1.12
- Conclusion: don't install symfony/console v4.1.12
- nunomaduro/phpinsights v1.7.0 requires symfony/console ^4.2 -> satisfiable by symfony/console[v4.2.0, v4.2.1, v4.2.10, v4.2.2, v4.2.3, v4.2.4, v4.2.5, v4.2.6, v4.2.7, v4.2.8, v4.2.9, v4.3.0, v4.3.1, v4.3.2].
- Can only install one of: symfony/console[v4.2.0, v4.1.12].
- Can only install one of: symfony/console[v4.2.1, v4.1.12].
- Can only install one of: symfony/console[v4.2.10, v4.1.12].
- Can only install one of: symfony/console[v4.2.2, v4.1.12].
- Can only install one of: symfony/console[v4.2.3, v4.1.12].
- Can only install one of: symfony/console[v4.2.4, v4.1.12].
- Can only install one of: symfony/console[v4.2.5, v4.1.12].
- Can only install one of: symfony/console[v4.2.6, v4.1.12].
- Can only install one of: symfony/console[v4.2.7, v4.1.12].
- Can only install one of: symfony/console[v4.2.8, v4.1.12].
- Can only install one of: symfony/console[v4.2.9, v4.1.12].
- Can only install one of: symfony/console[v4.3.0, v4.1.12].
- Can only install one of: symfony/console[v4.3.1, v4.1.12].
- Can only install one of: symfony/console[v4.3.2, v4.1.12].
- Installation request for symfony/console (locked at v4.1.12) -> satisfiable by symfony/console[v4.1.12].
Installation failed, reverting ./composer.json to its original content.
C:\Users\JakeCasto\Desktop\Projects\kayser-roth-burlix>composer prohibits symfony/console ^4.2
magento/composer 1.4.0 requires symfony/console (~4.0.0 || ~4.1.0)
magento/framework 102.0.2 requires symfony/console (~4.1.0)
magento/magento2-base 2.3.2 requires symfony/console (~4.1.0)
magento/magento2-ee-base 2.3.2 requires symfony/console (~4.1.0)
magento/product-community-edition 2.3.2 requires symfony/console (~4.1.0)
magento/product-enterprise-edition 2.3.2 requires symfony/console (~4.1.0)
@0x15f Could you try with this method in the doc ? https://phpinsights.com/get-started.html#avoid-composer-conflicts
Hmm yeah this is an annoying problem. This is caused by Magento having the following constraint
"symfony/console": "~4.1.0" and we have "symfony/console": "^4.2".
As @Jibbarth says we have the work around in the docs.
However as we have a preset for Magento, I think we should be able to install this package directly when using Magento. @nunomaduro What do you think? Should we bump our requirement to 4.1 to support Magento out of the box?
Most helpful comment
I will implement this for Magento 2