class_exists에 namespace가 지정되지 않은 문제 해결

This commit is contained in:
2018-03-25 00:30:44 +09:00
parent cab0401dfa
commit 8c03d1fa31
7 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
<?php
namespace kakao;
if (class_exists('KakaoKey') === false) {
if (class_exists('sammo\KakaoKey') === false) {
class KakaoKey{
const REST_KEY = '';
const ADMIN_KEY = '';
+2 -2
View File
@@ -27,7 +27,7 @@ class AppConf{
* @return \MeekroDB
*/
public static function requireRootDB(){
if(!class_exists('RootDB')){
if(!class_exists('sammo\RootDB')){
trigger_error('RootDB.php가 설정되지 않았습니다.', E_USER_ERROR);
die();
}
@@ -40,7 +40,7 @@ class AppConf{
* @return \MeekroDB
*/
public static function requireDB(){
if(!class_exists('DB')){
if(!class_exists('sammo\DB')){
trigger_error('DB.php가 설정되지 않았습니다.', E_USER_ERROR);
die();
}