brefphp / bref

Serverless PHP on AWS Lambda
https://bref.sh
MIT License
3.1k stars 367 forks source link

Class Redis not Found after migrate to brefphp/bref 2.1.2 #1621

Closed cedric-r-mycelium closed 1 year ago

cedric-r-mycelium commented 1 year ago

Description:

Invoke Error {"errorType":"Error","errorMessage":"Class \"Redis\" not found","stack"

And in lambda layer after deploy i have only one layer php-81 and before migration we have 4 layer

How to reproduce:

provider: name: aws timeout: 840 region: eu-west-1 runtime: php-81 logs: frameworkLambda: true layers: - ${bref-extra:redis-php-81} # redis Extension - ${bref-extra:gd-php-81} # GD extension - ${bref-extra:imagick-php-81} # Imagick extension

mnapoli commented 1 year ago

Thanks, that might be related to https://github.com/brefphp/bref/pull/1615 maybe?

Can you confirm it worked with 2.1.1? (or which version it worked with)

We might need to add a test to https://github.com/brefphp/bref/blob/master/tests/PluginTest.php to cover this case.

cedric-r-mycelium commented 1 year ago

Yes when a rollbak to 2.1.1 it's works again

mnapoli commented 1 year ago

Thanks!

@t-richard if it rings a bell let us know. I'll try and look at it this week.