🚑 add config & include

This commit is contained in:
Clement Desmidt 2017-07-27 11:08:31 +02:00
parent 1c66e3db4a
commit fcfb0bde14

View File

@ -25,10 +25,12 @@ class CloudinaryPlugin extends Plugin
return;
}
include __DIR__.'/vendor/autoload.php';
\Cloudinary::config([
"cloud_name" => $this->config->get('plugins.cloudinary.license_key'),
"api_key" => $this->config->get('plugins.cloudinary.license_key'),
"api_secret" => $this->config->get('plugins.cloudinary.license_key'),
"cloud_name" => $this->config->get('plugins.cloudinary.cloud_name'),
"api_key" => $this->config->get('plugins.cloudinary.api_key'),
"api_secret" => $this->config->get('plugins.cloudinary.api_secret'),
]);
$this->enable([