File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 11<?php
22
3- if (! function_exists ('include_route_files ' )) {
3+ if (! function_exists ('include_files_in_folder ' )) {
44 /**
55 * Loops through a folder and requires all PHP files
66 * Searches sub-directories as well.
77 *
88 * @param $folder
99 */
10- function include_route_files ($ folder )
10+ function include_files_in_folder ($ folder )
1111 {
1212 try {
1313 $ rdi = new RecursiveDirectoryIterator ($ folder );
@@ -25,3 +25,16 @@ function include_route_files($folder)
2525 }
2626 }
2727}
28+
29+ if (! function_exists ('include_route_files ' )) {
30+ /**
31+ * Loops through a folder and requires all PHP files
32+ * Searches sub-directories as well.
33+ *
34+ * @param $folder
35+ */
36+ function include_route_files ($ folder )
37+ {
38+ include_files_in_folder ($ folder );
39+ }
40+ }
You can’t perform that action at this time.
0 commit comments