src/RestGalleries/Http/Plugins/Cache.php
protected function processPluginData($system, $path)
    {
        if (! $this->isValidCacheSystem($system)) {
            throw new \InvalidArgumentException('Cache system is invalid.');
        }

        $this->system = $system;

        if (empty($path)) {
            $path = [
                'folder' => dirname(dirname(dirname(__FILE__))) . '/storage/cache',
            ];
        }

        $this->path = $path;
    }
protected function processPluginData($system, $path)
    {
        if (! $this->isValidCacheSystem($system)) {
            throw new \InvalidArgumentException('Cache system is invalid.');
        }

        $this->system = $system;

        if (empty($path)) {
            $path = [
                'folder' => dirname(dirname(dirname(__FILE__))) . '/storage/cache',
            ];
        }

        $this->path = $path;
    }
Receives data to configure the plugin, then verifies and separates them into variables.

@param  string $system
@param  array  $path
@throws \InvalidArgumentException
@return void