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

Allow laminas/laminas-diactoros v3 #21

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

Conversation

erickskrauch
Copy link

While updating the dependencies, I also found a bug in the implementation inside Psr7ResponseTrait. I know it's not good to mix multiple edits in one PR, but I thought this fix might be part of an adaptation to laminas/laminas-diactoros v3 support :)

},
"require-dev": {
"samdark/yii2-psr-log-target": "^1.0",
"monolog/monolog": "~2.1.0",
"squizlabs/php_codesniffer": "^3.2",
"phpunit/phpunit": "^9.0",
"spiral/roadrunner": "^2.5"
"spiral/roadrunner": "^2.5",
"yidas/yii2-bower-asset": "2.0.13.1"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! This dependency yidas/yii2-bower-asset I don't believe needs to be added. If you can remove it and update the composer.lock file I'd be happy to merge this in. I'd prefer not to lock this and let Yii2 automatically pull it in as needed.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was there before me, so I decided that you actually needed it and moved to the dev section. Should I still remove it? I believe without it you wouldn't be able to install the Yii2 framework since it requires some bower assets.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@charlesportwoodii, kind ping :)

Copy link
Contributor

@maximal maximal Dec 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@erickskrauch, @charlesportwoodii, I think, we should use asset-packagist (bower-asset) approach here, as it is currently the main method for Yii2 applications. Otherwise, for now, this bridge will prevent asset-packagist from installing packages to vendor/bower-asset directory and use yidas/yii2-bower-asset/bower directory instead.

See for more information: https://www.yiiframework.com/doc/guide/2.0/en/structure-assets#bower-npm-assets

@charlesportwoodii charlesportwoodii self-assigned this Oct 21, 2024
@charlesportwoodii charlesportwoodii added bug Something isn't working dependencies Pull requests that update a dependency file labels Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants