Releases: brefphp/symfony-bridge
1.0.3
1.0.2
What's Changed
- Allow using a custom runtime by @allan-simon in #57
New Contributors
- @allan-simon made their first contribution in #57
Full Changelog: 1.0.1...1.0.2
1.0.1
1.0.0
0.2.2
What's Changed
- Prepare for deprecations by @ramondelafuente in #66
New Contributors
- @ramondelafuente made their first contribution in #66
Full Changelog: 0.2.1...0.2.2
0.2.1
What's Changed
- Allow flex plugin for tests by @t-richard in #64
- Allow Bref v2 by @mnapoli in #63
Full Changelog: 0.2.0...0.2.1
0.2.0
BC breaks over v0.1
- Requires Symfony 5.2 or greater
Improvements
Symfony 6 compatibility by @amacrobert in #47 and @mnapoli in #50
The package now provides a Symfony Runtime (by @mnapoli in #45) that lets users:
- Handle requests with the Kernel directly, without PHP-FPM
# serverless.yml
functions:
app:
- handler: public/index.php
+ handler: App\Kernel
layers:
# Switch from PHP-FPM to the "function" runtime:
- - ${bref:layer.php-80-fpm}
+ - ${bref:layer.php-80}
environment:
# The Symfony process will restart every 100 requests
BREF_LOOP_MAX: 100
The App\Kernel
will be retrieved via Symfony Runtime from public/index.php
.
- Handle events with Symfony services
To handle other events (e.g. SQS messages with Symfony Messenger) via a class name:
# serverless.yml
functions:
sqsHandler:
- handler: bin/consumer.php
+ handler: App\Service\MyService
layers:
- ${bref:layer.php-80}
The service will be retrieved via Symfony Runtime from the Symfony Kernel returned by public/index.php.
Note: the service must be configured as public (public: true) in the Symfony configuration.
Full Changelog: 0.1.3...0.2.0
0.2.0-beta1
First beta release for v0.2.0.
BC breaks
- Requires Symfony 5.2 or greater
Improvements
Symfony 6 compatibility by @amacrobert in #47 and @mnapoli in #50
The package now provides a Symfony Runtime (by @mnapoli in #45) that lets users:
- Handle requests with the Kernel directly, without PHP-FPM
# serverless.yml
functions:
app:
- handler: public/index.php
+ handler: App\Kernel
layers:
# Switch from PHP-FPM to the "function" runtime:
- - ${bref:layer.php-80-fpm}
+ - ${bref:layer.php-80}
environment:
# The Symfony process will restart every 100 requests
BREF_LOOP_MAX: 100
The App\Kernel
will be retrieved via Symfony Runtime from public/index.php
.
- Handle events with Symfony services
To handle other events (e.g. SQS messages with Symfony Messenger) via a class name:
# serverless.yml
functions:
sqsHandler:
- handler: bin/consumer.php
+ handler: App\Service\MyService
layers:
- ${bref:layer.php-80}
The service will be retrieved via Symfony Runtime from the Symfony Kernel returned by public/index.php.
Note: the service must be configured as public (public: true) in the Symfony configuration.
New Contributors
- @amacrobert made their first contribution in #47
Full Changelog: 0.1.3...0.2.0-beta1