autoload 경로 재 변경

kakao를 별도의 namespace로 분리
외부 class의 namespace 문제 해결
This commit is contained in:
2018-03-24 18:46:37 +09:00
parent dc507601f5
commit 037a29ad02
25 changed files with 44 additions and 241 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ function getServerBasepath(){
/**
* DB 객체 생성
*
* @return MeekroDB
* @return \MeekroDB
*/
function getRootDB(){
$host = '_tK_host_';
@@ -38,7 +38,7 @@ function getRootDB(){
static $uDB = null;
if($uDB === null){
$uDB = new MeekroDB($host,$user,$password,$dbName,$port,$encoding);
$uDB = new \MeekroDB($host,$user,$password,$dbName,$port,$encoding);
$uDB->connect_options[MYSQLI_OPT_INT_AND_FLOAT_NATIVE] = true;
}
+2 -2
View File
@@ -1,7 +1,7 @@
<?php
namespace sammo;
namespace kakao;
require(__dir__.'/../vendor/autoload.php');
namespace sammo;
class KakaoKey{
const REST_KEY = '_tK_REST_API_KEY_';
const ADMIN_KEY = '_tK_ADMIN_KEY_';