From 002a45b8902aac3e2ae9b8c48e438a524059c355 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come@opensides.be> Date: Thu, 14 Mar 2019 16:44:11 +0100 Subject: [PATCH] :ambulance: fix(fusiondirectory-setup) Add support for interface Autoloading was only working for classes, it now supports interfaces as well. issue #5970 --- contrib/bin/fusiondirectory-setup | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/contrib/bin/fusiondirectory-setup b/contrib/bin/fusiondirectory-setup index 32ef85f72..61b5db319 100644 --- a/contrib/bin/fusiondirectory-setup +++ b/contrib/bin/fusiondirectory-setup @@ -336,11 +336,17 @@ sub get_classes { # remove \n from the end of each line chomp $line; - # only process for lines beginning with "class", and extracting the 2nd word (the class name) + # process for lines beginning with "class", and extracting the 2nd word (the class name) if ( $line =~ /^class\s*(\w+).*/ ) { # adding the values (class name and file path) to the hash $classes_hash_result{$1} = $file; } + + # process for lines beginning with "interface", and extracting the 2nd word (the interface name) + if ( $line =~ /^interface\s*(\w+).*/ ) { + # adding the values (class name and file path) to the hash + $classes_hash_result{$1} = $file; + } } } } -- GitLab