Skip to content

Commit 721f2af

Browse files
authored
Fix Platform.sh template (#1031)
Missing `sodium` PHP extension results in an inability to build the the project on [platform.sh](https://platform.sh/) ``` Found a `composer.json`, installing dependencies. W: Installing dependencies from lock file (including require-dev) W: Verifying lock file contents can be installed on current platform. W: Your lock file does not contain a compatible set of packages. Please run composer update. W: W: Problem 1 W: - lcobucci/jwt is locked to version 4.3.0 and an update of this package was not requested. W: - lcobucci/jwt 4.3.0 requires ext-sodium * -> it is missing from your system. Install or enable PHP's sodium extension. W: Problem 2 W: - lcobucci/jwt 4.3.0 requires ext-sodium * -> it is missing from your system. Install or enable PHP's sodium extension. W: - lexik/jwt-authentication-bundle v2.17.0 requires lcobucci/jwt ^3.4|^4.0 -> satisfiable by lcobucci/jwt[4.3.0]. W: - lexik/jwt-authentication-bundle is locked to version v2.17.0 and an update of this package was not requested. W: W: To enable extensions, verify that they are enabled in your .ini files: W: - /etc/php/8.3/cli/php.ini W: You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode. W: Alternatively, you can run Composer with `--ignore-platform-req=ext-sodium` to temporarily ignore these required extensions. E: Error building project: `composer` could not be run. E: Error: Unable to build application, aborting. ``` This will fix it resulting in a successful build.
2 parents 7a6ef79 + 4fe8787 commit 721f2af

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.platform.app.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ dependencies:
8484
php:
8585
composer/composer: '^2'
8686

87+
runtime:
88+
extensions:
89+
- sodium
90+
8791
crons:
8892
sylius-cancel-unpaid-orders:
8993
spec: "0 2 * * *"

0 commit comments

Comments
 (0)