summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/php.eselect.in25
1 files changed, 3 insertions, 22 deletions
diff --git a/src/php.eselect.in b/src/php.eselect.in
index efd52c2..26c43d8 100644
--- a/src/php.eselect.in
+++ b/src/php.eselect.in
@@ -412,26 +412,6 @@ list_sapi() {
write_numbered_list -m "(none found)" "${targets[@]}"
}
-list_apache2() {
- list_sapi apache2
-}
-
-list_cli() {
- list_sapi cli
-}
-
-list_cgi() {
- list_sapi cgi
-}
-
-list_fpm() {
- list_sapi fpm
-}
-
-list_dbg() {
- list_sapi dbg
-}
-
# Perform the "set" action for the given SAPI.
#
@@ -545,8 +525,9 @@ describe_list_options() {
}
do_list() {
- check_module $1
- list_$1
+ local sapi="${1}"
+ check_module "${sapi}"
+ list_sapi "${sapi}"
}
## Show action