paketo-buildpacks / php-web

Apache License 2.0
6 stars 7 forks source link

Add deprecation warning for `buildpack.yml` usage #216

Closed sophiewigmore closed 2 years ago

sophiewigmore commented 2 years ago

Per https://github.com/paketo-buildpacks/rfcs/issues/58 (from RFC 0026) we are switching over the use of buildpack.yml configurations to environment variable-set configurations.

We should start this process for PHP by emitting a deprecation warning via log output about using the buildpack.yml setting that says:

WARNING: Setting the PHP configurations through buildpack.yml will be deprecated soon in the v1.0.0 release of this buildpack.

The v1.0.0 buildpack release will support setting various configurations through an environment variables instead.

We accomplish this in other buildpacks which can be used as an example for this issue.