Browse Source

🚑 add config & include

master
Clement Desmidt 4 years ago
parent
commit
fcfb0bde14
  1. 8
      cloudinary.php

8
cloudinary.php

@ -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([

Loading…
Cancel
Save