File "FileManagerProvider.php"

Full Path: /home/warrior1/public_html/plugins/file-manager/backend/app/Providers/FileManager/FileManagerProvider.php
File size: 604 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace BitApps\FM\Providers\FileManager;

\defined('ABSPATH') or exit();

use BitApps\FM\Providers\FileManager\Options as FinderOptions;
use elFinder;
use elFinderConnector;

class FileManagerProvider
{
    /**
     * Options for elFinder
     *
     * @var FinderOptions
     */
    private $_finderOptions;

    public function __construct(FinderOptions $finderOptions)
    {
        $this->_finderOptions = $finderOptions;
    }

    public function getFinder()
    {
        $finder = new elFinder($this->_finderOptions->getOptions());

        return new FinderConnector($finder);
    }
}