Commit bde9e95c authored by taras's avatar taras
Browse files

v1.0.1

parent b243932f
......@@ -10,8 +10,9 @@
namespace SapientPro\Facebook\Api;
use \Magento\Framework\Notification\NotifierInterface;
use \Magento\Framework\Message\ManagerInterface;
use Magento\Framework\Notification\NotifierInterface;
use Magento\Framework\Message\ManagerInterface;
use Facebook\Facebook as FacebookSdk;
/**
* Class Notify
......@@ -22,5 +23,5 @@ interface FacebookInterface
/**
* @return mixed
*/
public function getSdk() : \Facebook\Facebook;
public function getSdk() : FacebookSdk;
}
......@@ -16,6 +16,7 @@ use Magento\Framework\App\Config\ScopeConfigInterface;
use Magento\Framework\Encryption\EncryptorInterface;
use Magento\Store\Model\ScopeInterface;
use SapientPro\Facebook\Api\FacebookInterface;
use Facebook\Facebook as FacebookSdk;
/**
* Class Notify
......@@ -38,7 +39,7 @@ class Facebook implements FacebookInterface
ScopeConfigInterface $scopeConfig,
EncryptorInterface $enCrypt
) {
$this->sdk = new \Facebook\Facebook([
$this->sdk = new FacebookSdk([
'app_id' => $scopeConfig->getValue(
'sapientpro/facebook/app_id',
ScopeInterface::SCOPE_STORE
......
......@@ -13,7 +13,7 @@ namespace SapientPro\Facebook\ViewModel;
use Magento\Framework\App\Config\ScopeConfigInterface;
use Magento\Framework\DataObject;
use Magento\Framework\View\Element\Block\ArgumentInterface;
use \Magento\Framework\Locale\ResolverInterface as LocaleResolverInterface;
use Magento\Framework\Locale\ResolverInterface as LocaleResolverInterface;
/**
* Class JavaScriptSDK
......
......@@ -2,7 +2,7 @@
"name": "sapientpro/module-facebook",
"description": "SapientPro Facebook",
"type": "magento2-module",
"version": "1.0.0",
"version": "1.0.1",
"license": [
"OSL-3.0",
"AFL-3.0"
......@@ -24,7 +24,8 @@
},
"require": {
"php": ">=7.0",
"sapientpro/module-core": "*"
"sapientpro/module-core": "*",
"facebook/graph-sdk": "^5.7"
},
"autoload": {
"files": [
......
......@@ -8,6 +8,7 @@
* @copyright Copyright © 2009-2019 SapientPro (https://sapient.pro)
*/
/** @var $block Magento\Framework\View\Element\Template */
/** @var SapientPro\Facebook\ViewModel\JavaScriptSDK $javaScriptSDK */
$javaScriptSDK = $block->getData('javaScriptSDK');
/** @var SapientPro\Core\ViewModel\Locale $localeResolver */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment