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 90e2de9 commit f768f1fCopy full SHA for f768f1f
1 file changed
public/index.php
@@ -1,16 +1,16 @@
1
<?php
2
3
-//define('APP_ROOT', __DIR__);
+// define('APP_ROOT', __DIR__);
4
5
-require_once(__DIR__."/../vendor/autoload.php");
6
-//'require_once(__DIR__."/../bootstrap/");
+require_once __DIR__.'/../vendor/autoload.php';
+// 'require_once(__DIR__."/../bootstrap/");
7
8
-spl_autoload_register(function($class) {
9
- $classFile = str_replace("\\", DIRECTORY_SEPARATOR, $class.".php");
10
- $classPath = "./../app/" . $classFile;
+spl_autoload_register(function ($class) {
+ $classFile = str_replace('\\', DIRECTORY_SEPARATOR, $class.'.php');
+ $classPath = './../app/'.$classFile;
11
12
- if(file_exists($classPath)){
13
- require_once($classPath);
+ if (file_exists($classPath)) {
+ require_once $classPath;
14
}
15
});
16
0 commit comments