Skip to content

Commit

Permalink
LaravelFacebookSdk을 Ioc 방식으로 인젝션
Browse files Browse the repository at this point in the history
  • Loading branch information
pouu69 committed Oct 26, 2016
1 parent 3c32ffd commit 3d965d2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/LaravelFacebookUpload.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use \SammyK\LaravelFacebookSdk\LaravelFacebookSdk;

class LaravelFacebookUpload {
class LaravelFacebookUpload{
/** @var array response message */
protected $resMsg = [];
/** @var string 각 사용자의 access token requried */
Expand All @@ -20,7 +20,8 @@ class LaravelFacebookUpload {
private $fbSDK;

public function __construct(){
$this->fbSDK = new LaravelFacebookSdk;
$this->fbSDK = \App::make('SammyK\LaravelFacebookSdk\LaravelFacebookSdk');


$this->resMsg = [
'status' => 'done',
Expand All @@ -34,7 +35,7 @@ public function __construct(){
* @param Array $data parameter data객체
*/
protected function setData(array $data){
$data = (object)$params;
$data = (object)$data;

$this->CARD_ID = $data->cardId;
$this->WHERE_SHARE = $data->whereShare;
Expand Down

0 comments on commit 3d965d2

Please sign in to comment.