<commit_before><?php
/**
 * Config file for sfRADIUSAuthPlugin
 *
 * PHP version 5
 *
 * @category   Symfony
 * @package    Plugins
 * @subpackage Auth
 * @author     BigBadBassMan <<EMAIL>>
 * @license    http://www.symfony-project.org/license MIT
 * @version    SVN: $Id$
 * @link       www.symfony-project.org
 */

/**
 * Config class for sfRADIUSAuthPlugin
 *
 * @category   Symfony
 * @package    Plugins
 * @subpackage Auth
 * @author     BigBadBassMan <<EMAIL>>
 * @license    http://www.symfony-project.org/license MIT
 * @release    0.1.1
 * @link       www.symfony-project.org/plugins/sfRADIUSAuthPlugin
 * @see        sfPluginConfiguration
 */
class sfRADIUSAuthPluginConfiguration extends sfPluginConfiguration
{
  /**
   * init method
   *
   * @see sfPluginConfiguration::initialize()
   *
   * @return void
   */
  public function initialize()
  {
    if (!sfConfig::get('settings_sfRADIUSAuth_enabled', false))
    {
      return;
    }

    if (in_array('sfGuardAuth', sfConfig::get('sf_enabled_modules', array())))
    {
      sfConfig::set(
        'app_sf_guard_plugin_check_password_callable',
        array('sfRADIUSAuth', 'authenticateUser')
      );
    }
  }

  /**
   * initAutoload
   *
   * @see sfPluginConfiguration::initializeAutoload()<commit_msg>fixed wrong conf-key usage: use app_sfRADIUSAuth*<commit_after><?php
/**
 * Config file for sfRADIUSAuthPlugin
 *
 * PHP version 5
 *
 * @category   Symfony
 * @package    Plugins
 * @subpackage Auth
 * @author     BigBadBassMan <<EMAIL>>
 * @license    http://www.symfony-project.org/license MIT
 * @version    SVN: $Id$
 * @link       www.symfony-project.org
 */

/**
 * Config class for sfRADIUSAuthPlugin
 *
 * @category   Symfony
 * @package    Plugins
 * @subpackage Auth
 * @author     BigBadBassMan <<EMAIL>>
 * @license    http://www.symfony-project.org/license MIT
 * @release    0.1.1
 * @link       www.symfony-project.org/plugins/sfRADIUSAuthPlugin
 * @see        sfPluginConfiguration
 */
class sfRADIUSAuthPluginConfiguration extends sfPluginConfiguration
{
  /**
   * init method
   *
   * @see sfPluginConfiguration::initialize()
   *
   * @return void
   */
  public function initialize()
  {
    if (!sfConfig::get('app_sfRADIUSAuth_enabled', false))
    {
      return;
    }

    if (in_array('sfGuardAuth', sfConfig::get('sf_enabled_modules', array())))
    {
      sfConfig::set(
        'app_sf_guard_plugin_check_password_callable',
        array('sfRADIUSAuth', 'authenticateUser')
      );
    }
  }

  /**
   * initAutoload
   *
   * @see sfPluginConfiguration::initializeAutoload()
{'fraction_non_alphanumeric': 0.12784859018926226, 'fraction_numerical': 0.003089996137504828, 'mean_word_length': 3.0405616224648986, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 8, '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': '7242104', 'n_tokens_mistral': 863, 'n_tokens_neox': 843, 'n_words': 154}