cachewerk / bref-laravel-bridge

An advanced Laravel integration for Bref, including Octane support.
MIT License
38 stars 8 forks source link

FPM can't write to stdout #26

Closed georgeboot closed 1 year ago

georgeboot commented 1 year ago

The secrets injector and the storage directories helper, both write to stdout. This however doesn't work in PHP-FTP and results in a crash.

https://github.com/cachewerk/bref-laravel-bridge/blob/33c1fe09ce00d5c67bc20e1f4c9dad34f35e0ac0/src/Secrets.php#L37 https://github.com/cachewerk/bref-laravel-bridge/blob/33c1fe09ce00d5c67bc20e1f4c9dad34f35e0ac0/src/StorageDirectories.php#L31

Ideally we attempt to write to stderr, but wrapped in a try/catch block.