Skip to content

Commit f768f1f

Browse files
updated
1 parent 90e2de9 commit f768f1f

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

public/index.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<?php
22

3-
//define('APP_ROOT', __DIR__);
3+
// define('APP_ROOT', __DIR__);
44

5-
require_once(__DIR__."/../vendor/autoload.php");
6-
//'require_once(__DIR__."/../bootstrap/");
5+
require_once __DIR__.'/../vendor/autoload.php';
6+
// 'require_once(__DIR__."/../bootstrap/");
77

8-
spl_autoload_register(function($class) {
9-
$classFile = str_replace("\\", DIRECTORY_SEPARATOR, $class.".php");
10-
$classPath = "./../app/" . $classFile;
8+
spl_autoload_register(function ($class) {
9+
$classFile = str_replace('\\', DIRECTORY_SEPARATOR, $class.'.php');
10+
$classPath = './../app/'.$classFile;
1111

12-
if(file_exists($classPath)){
13-
require_once($classPath);
12+
if (file_exists($classPath)) {
13+
require_once $classPath;
1414
}
1515
});
1616

0 commit comments

Comments
 (0)