public function buildConnectorOptions(array $extraOptions = [])
    {
        $options = [
            'debug' => false,
            'roots' => $this->getCurrentRoots()
        ];

        $adminOptions = $this->getAdminConnectorOptions();
        $adminOptions = $this->parseAdminOptionsForConnectorBuild($adminOptions);
        $extraOptions = $this->parseExtraOptionsForConnectorBuild($extraOptions);

        $options = $this->mergeConnectorOptions($options, $adminOptions);
        $options = $this->mergeConnectorOptions($options, $extraOptions);

        if (isset($options['bind'])) {
            $options['bind'] = $this->resolveCallbacksForBindOption($options['bind']);
        }

        $this->elfinderOptions = $options;

        return $options;
    }