<commit_before><?php
/*
 * This file is part of the AlphaLemonThemeEngineBundle and it is distributed
 * under the MIT License. To use this bundle you must leave
 * intact this copyright notice.
 *
 * Copyright (c) AlphaLemon <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * For extra documentation and help please visit http://alphalemon.com
 * 
 * @license    MIT License
 */

namespace AlphaLemon\ElFinderBundle\Core\Connector;

use Symfony\Component\Form\Exception\InvalidConfigurationException;
use Symfony\Component\DependencyInjection\ContainerInterface;

// elfinder configuration
error_reporting(0);

include_once dirname(__FILE__).'/../../Resources/public/vendor/ElFinder/php/elFinderConnector.class.php';
include_once dirname(__FILE__).'/../../Resources/public/vendor/ElFinder/php/elFinder.class.php';
include_once dirname(__FILE__).'/../../Resources/public/vendor/ElFinder/php/elFinderVolumeDriver.class.php';
include_once dirname(__FILE__).'/../../Resources/public/vendor/ElFinder/php/elFinderVolumeLocalFileSystem.class.php';

/**
 * Instantiates the elFinder connector
 *
 * @author AlphaLemon
 */
abstract class AlphaLemonElFinderBaseConnector
{
    private $options = array();
    protected $container = array();

    /**
     * Returns an array of options to configure the elFinder library
     * 
     * @return array 
     */
    abstract protected function configure();

    /**
     * The constructor
     * 
     * @param ContainerInterface $container 
     */
    public function __construct(ContainerInterface $container)
    {
        $this->container = $container;
        $this->options = $this->configure();
        
        if(null === $this->options)
        {
            throw new InvalidConfigurationException(sprintf("The configure method cannot return a null value. Check the value returned by the configure method in the %className% object", \get_class($this)));<commit_msg>changed var options visibility to protected<commit_after><?php
/*
 * This file is part of the AlphaLemonThemeEngineBundle and it is distributed
 * under the MIT License. To use this bundle you must leave
 * intact this copyright notice.
 *
 * Copyright (c) AlphaLemon <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * For extra documentation and help please visit http://alphalemon.com
 * 
 * @license    MIT License
 */

namespace AlphaLemon\ElFinderBundle\Core\Connector;

use Symfony\Component\Form\Exception\InvalidConfigurationException;
use Symfony\Component\DependencyInjection\ContainerInterface;

// elfinder configuration
error_reporting(0);

include_once dirname(__FILE__).'/../../Resources/public/vendor/ElFinder/php/elFinderConnector.class.php';
include_once dirname(__FILE__).'/../../Resources/public/vendor/ElFinder/php/elFinder.class.php';
include_once dirname(__FILE__).'/../../Resources/public/vendor/ElFinder/php/elFinderVolumeDriver.class.php';
include_once dirname(__FILE__).'/../../Resources/public/vendor/ElFinder/php/elFinderVolumeLocalFileSystem.class.php';

/**
 * Instantiates the elFinder connector
 *
 * @author AlphaLemon
 */
abstract class AlphaLemonElFinderBaseConnector
{
    protected $options = array();
    protected $container = array();

    /**
     * Returns an array of options to configure the elFinder library
     * 
     * @return array 
     */
    abstract protected function configure();

    /**
     * The constructor
     * 
     * @param ContainerInterface $container 
     */
    public function __construct(ContainerInterface $container)
    {
        $this->container = $container;
        $this->options = $this->configure();
        
        if(null === $this->options)
        {
            throw new InvalidConfigurationException(sprintf("The configure method cannot return a null value. Check the value returned by the configure method in the %className% object", \get_class($this)));
{'fraction_non_alphanumeric': 0.10869565217391304, 'fraction_numerical': 0.0004940711462450593, 'mean_word_length': 3.6863425925925926, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1210097', 'n_tokens_mistral': 1054, 'n_tokens_neox': 1059, 'n_words': 300}