diff --git a/.gitignore b/.gitignore index 75e4ead1..67677604 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,6 @@ /vendor /config/config.php /config/xs.course.ini +/public/robots.txt +/public/sitemap.xml *KgTest* diff --git a/app/Caches/CourseUser.php b/app/Caches/CourseUser.php deleted file mode 100644 index b4ec6e92..00000000 --- a/app/Caches/CourseUser.php +++ /dev/null @@ -1,33 +0,0 @@ -lifetime; - } - - public function getKey($id = null) - { - return "course_user:{$id}"; - } - - public function getContent($id = null) - { - list($courseId, $userId) = explode('_', $id); - - $repo = new CourseUserRepo(); - - $courseUser = $repo->findCourseUser($courseId, $userId); - - return $courseUser ?: null; - } - -} diff --git a/app/Providers/Config.php b/app/Providers/Config.php index 37e0c66b..5099228d 100644 --- a/app/Providers/Config.php +++ b/app/Providers/Config.php @@ -2,7 +2,7 @@ namespace App\Providers; -use Phalcon\Config as PhalconConfig; +use Phalcon\Config as PhConfig; class Config extends Provider { @@ -15,7 +15,7 @@ class Config extends Provider $options = require config_path('config.php'); - return new PhalconConfig($options); + return new PhConfig($options); }); }