Skip to content

Commit 78b965e

Browse files
committed
新增 HTTP 类划分
1 parent 9bd608f commit 78b965e

File tree

9 files changed

+208
-130
lines changed

9 files changed

+208
-130
lines changed

.idea/workspace.xml

Lines changed: 183 additions & 124 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

App/System/Http/Input.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?php
2+
// TODO: INPUT CLASS

App/System/Http/Request.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
/**
3+
* Created by PhpStorm.
4+
* User: rytia
5+
* Date: 2018/8/20
6+
* Time: 14:12
7+
*/
8+
9+
// TODO: REQUEST CLASS

App/System/Http/Response.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
/**
3+
* Created by PhpStorm.
4+
* User: rytia
5+
* Date: 2018/8/20
6+
* Time: 14:13
7+
*/
8+
// TODO: RESPONSE CLASS
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace System\Utilities;
2+
namespace System\Utility;
33
/**
44
* PHP-QuickORM 异常处理类
55
* @author Rytia <rytia@outlook.com>

index.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
// 如果您已将产品真正投入使用,请将您的工作目录设置为 /Public
1313

1414

15-
require_once __DIR__."/App/System/Utilities/Functions.php";
16-
set_error_handler('\System\Utilities\Exception::errorReport');
17-
set_exception_handler('\System\Utilities\Exception::exceptionReport');
15+
require_once __DIR__ . "/App/System/Utility/Functions.php";
16+
set_error_handler('\System\Utility\Exception::errorReport');
17+
set_exception_handler('\System\Utility\Exception::exceptionReport');
1818

1919
$request = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
2020

vendor/composer/autoload_classmap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
'System\\DatabaseDriver\\pdo_sqlite' => $baseDir . '/App/System/DatabaseDriver/pdo_sqlite.php',
1313
'System\\Interfaces\\Jsonable' => $baseDir . '/App/System/Interfaces/Jsonable.php',
1414
'System\\Model' => $baseDir . '/App/System/Model.php',
15-
'System\\Utilities\\Exception' => $baseDir . '/App/System/Utilities/Exception.php',
15+
'System\\Utility\\Exception' => $baseDir . '/App/System/Utility/Exception.php',
1616
);

vendor/composer/autoload_static.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class ComposerStaticInit3dcce667708e66b2aabbed3c392db095
3535
'System\\DatabaseDriver\\pdo_sqlite' => __DIR__ . '/../..' . '/App/System/DatabaseDriver/pdo_sqlite.php',
3636
'System\\Interfaces\\Jsonable' => __DIR__ . '/../..' . '/App/System/Interfaces/Jsonable.php',
3737
'System\\Model' => __DIR__ . '/../..' . '/App/System/Model.php',
38-
'System\\Utilities\\Exception' => __DIR__ . '/../..' . '/App/System/Utilities/Exception.php',
38+
'System\\Utility\\Exception' => __DIR__ . '/../..' . '/App/System/Utility/Exception.php',
3939
);
4040

4141
public static function getInitializer(ClassLoader $loader)

0 commit comments

Comments
 (0)