Skip to content

Commit 34f837b

Browse files
committed
updating autoload.php to consider package dir as root of restful package
1 parent dbd59d3 commit 34f837b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

resources/autoload.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
// copy resources/.htaccess and resources/index.php to root of the package
1616
$restfulRootDir = $packageRootDir.'/vendor/php-platform/restful/';
1717

18+
if(!is_dir($restfulRootDir)){
19+
$restfulRootDir = $packageRootDir;
20+
}
21+
1822
copy($restfulRootDir.'/resources/.htaccess',$packageRootDir.'/.htaccess');
1923
$index = file_get_contents($restfulRootDir.'/resources/index.php');
2024

0 commit comments

Comments
 (0)