File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -159,14 +159,20 @@ if (file_exists($definitionsPath)) {
159159
160160$ capabilities = null ;
161161$ publicCapabilities = null ;
162- $ iterator = new RecursiveIteratorIterator (new RecursiveDirectoryIterator ($ sourceDir ));
163162$ capabilitiesFiles = [];
164- foreach ($ iterator as $ file ) {
165- $ path = $ file ->getPathname ();
166- if (!str_ends_with ($ path , ".php " )) {
167- continue ;
163+ $ capabilitiesDirs = [$ sourceDir ];
164+ if ($ appIsCore ) {
165+ $ capabilitiesDirs [] = $ sourceDir . '/../lib/private ' ;
166+ }
167+ foreach ($ capabilitiesDirs as $ dir ) {
168+ $ iterator = new RecursiveIteratorIterator (new RecursiveDirectoryIterator ($ dir ));
169+ foreach ($ iterator as $ file ) {
170+ $ path = $ file ->getPathname ();
171+ if (!str_ends_with ($ path , ".php " )) {
172+ continue ;
173+ }
174+ $ capabilitiesFiles [] = $ path ;
168175 }
169- $ capabilitiesFiles [] = $ path ;
170176}
171177sort ($ capabilitiesFiles );
172178foreach ($ capabilitiesFiles as $ path ) {
You can’t perform that action at this time.
0 commit comments