feat(php): extensions added + doc updated

This commit is contained in:
lnu 2021-10-27 14:31:56 +02:00 committed by Jan De Dobbeleer
parent 68a0d5fd95
commit 9f80243b1e
3 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
--- ---
id: php id: php
title: php title: php
sidebar_label: php sidebar_label: PHP
--- ---
## What ## What
@ -32,5 +32,5 @@ Display the currently active php version.
- missing_command_text: `string` - text to display when the command is missing - defaults to empty - missing_command_text: `string` - text to display when the command is missing - defaults to empty
- display_mode: `string` - determines when the segment is displayed - display_mode: `string` - determines when the segment is displayed
- `always`: the segment is always displayed - `always`: the segment is always displayed
- `files`: the segment is only displayed when `*.php` files are present (default) - `files`: the segment is only displayed when `*.php, composer.json, composer.lock, .php-version` files are present (default)
- enable_hyperlink: `bool` - display an hyperlink to the php release notes - defaults to `false` - enable_hyperlink: `bool` - display an hyperlink to the php release notes - defaults to `false`

View file

@ -48,6 +48,7 @@ module.exports = {
"os", "os",
"owm", "owm",
"path", "path",
"php",
"python", "python",
"root", "root",
"ruby", "ruby",
@ -59,7 +60,6 @@ module.exports = {
"text", "text",
"time", "time",
"ytm", "ytm",
"php",
], ],
}, },
{ {

View file

@ -12,7 +12,7 @@ func (n *php) init(props *properties, env environmentInfo) {
n.language = &language{ n.language = &language{
env: env, env: env,
props: props, props: props,
extensions: []string{"*.php", "composer.json", ".php-version"}, extensions: []string{"*.php", "composer.json", "composer.lock", ".php-version"},
commands: []*cmd{ commands: []*cmd{
{ {
executable: "php", executable: "php",