espocrm / ext-template

Template repository for EspoCRM extensions
Creative Commons Zero v1.0 Universal
29 stars 15 forks source link

Using other php packages that depends on "psr/log": "^1.0 || ^2.0 || ^3.0" creates a conflict #23

Closed rabiibrahimi closed 10 months ago

rabiibrahimi commented 10 months ago

Currently trying to use mpdf package as a pdfengine however i am facing a problem because mpdf require "psr/log": "^1.0 || ^2.0 || ^3.0" while espocrm require only "psr/log": "1.1.*". This leads to a conflict.

Any chance to require "psr/log": "^1.0" instead ?

Thanks

arkadiyasuratov commented 10 months ago

You can try using "replace" property in composer.json, something like

{
    "replace": {
        "psr/log": "*"
    }
}
rabiibrahimi commented 10 months ago

I tried that before but didn't work.

yurikuzn commented 10 months ago

Not related to ext-template. We update it in the future along with monolog, when we drop PHP 8.0.