浏览代码

Fix requires

Nathaniel van Diepen 7 年之前
父节点
当前提交
1e40e9ce83
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 2 0
      response.class.php
  2. 1 1
      router.class.php

+ 2 - 0
response.class.php

@@ -1,5 +1,7 @@
 <?php
+	require_once('events.trait.php');
 	class Response {
+		use Events;
 		public $output = '';
 		public $body = '';
 		private $code = 200;

+ 1 - 1
router.class.php

@@ -2,7 +2,7 @@
 	require_once('path.class.php');
 	require_once('response.class.php');
 	require_once('request.class.php');
-	require_once('events.interface.php');
+	require_once('events.trait.php');
 	class Router {
 		use Events;
 		private $_paths = [];