We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbd59d3 commit 34f837bCopy full SHA for 34f837b
resources/autoload.php
@@ -15,6 +15,10 @@
15
// copy resources/.htaccess and resources/index.php to root of the package
16
$restfulRootDir = $packageRootDir.'/vendor/php-platform/restful/';
17
18
+if(!is_dir($restfulRootDir)){
19
+ $restfulRootDir = $packageRootDir;
20
+}
21
+
22
copy($restfulRootDir.'/resources/.htaccess',$packageRootDir.'/.htaccess');
23
$index = file_get_contents($restfulRootDir.'/resources/index.php');
24
0 commit comments