Initializes the options for the object

Called from {@link __construct()} as a first step of object instantiation.

@param   KObjectConfig $config Configuration options
@return void
542410
protected function _initialize(KObjectConfig $config)
    {
        $config->append(array(
            'priority' => self::PRIORITY_LOW,
            'package'  => null,
            'entity' => null,
            'category_entity' => 'category'
        ))->append(array(
            'model' => KStringInflector::pluralize($config->entity)
        ));

        parent::_initialize($config);
    }
520706
protected function _initialize(ObjectConfig $config)
    {
        $config->append(array(
            'debug'        => \Kodekit::getInstance()->isDebug(),
            'cache'        => \Kodekit::getInstance()->isCache(),
            'cache_path'   => '',
            'engines'      => array(
                'lib:template.engine.kodekit'
            ),
        ))->append(array(
            'cache_reload' => $config->debug,
        ));
    }
1349568
protected function _initialize(ObjectConfig $config)
    {
        $config->append(array(
            'strict_callables' => false,
            'pragmas'          => array(\Mustache_Engine::PRAGMA_FILTERS),
        ));

        parent::_initialize($config);
    }
1279170
protected function _initialize(ObjectConfig $config)
    {
        $config->append(array(
            'priority' => self::PRIORITY_LOW,
        ));

        parent::_initialize($config);
    }
389981
protected function _initialize(KObjectConfig $config)
    {
        $config->append(array(
            'priority'   => self::PRIORITY_LOW,
            'template'   => JFactory::getApplication()->getTemplate()
        ));

        parent::_initialize($config);
    }
118126
protected function _initialize(KObjectConfig $config)
    {
        if(extension_loaded('xdebug') && xdebug_is_enabled() && getenv('JOOMLATOOLS_BOX'))
        {
            $level = self::ERROR_DEVELOPMENT;
            $type  = self::TYPE_ALL;
        }
        else
        {
            $level = JDEBUG ? E_ERROR | E_PARSE : self::ERROR_REPORTING;
            $type  = JDEBUG ? self::TYPE_ALL : false;
        }

        $config->append(array(
            'exception_type'  => $type,
            'error_reporting' => $level
        ));

        parent::_initialize($config);
    }
102256
protected function _initialize(KObjectConfig $config)
    {
        $config->append(array(
            'database'  => '',
            'host'      => ini_get('mysqli.default_host'),
            'username'  => ini_get('mysqli.default_user'),
            'password'  => ini_get('mysqli.default_pw'),
            'port'      => ini_get('mysqli.default_port'),
            'socket'    => ini_get('mysqli.default_socket')
        ));

        parent::_initialize($config);
    }
701823
protected function _initialize(KObjectConfig $config)
    {
        $config->append(array(
            'options' => array(
                'action'       => JFactory::getApplication()->isSite() ? 'core.login.site' : 'core.login.admin',
                'autoregister' => false,
                'type'         => 'basic'
            ),
        ));

        parent::_initialize($config);
    }
1164275
public function initialize(array $config)
    {
        //Checks for KCFinder and for the files directory (`APP/webroot/files`)
        is_true_or_fail($this->kcFinderIsAvailable(), __d('me_tools', '{0} is not available', 'KCFinder'));
        is_true_or_fail($this->uploadedDirIsWriteable(), __d('me_tools', 'File or directory `{0}` is not writable', rtr(UPLOADED)), NotWritableException::class);

        //Merges and writes on session:
        //  1) default config;
        //  2) options from configuration;
        //  3) passed options.
        $config = array_merge($this->getDefaultConfig(), getConfig('kcfinder', []), $config);
        $this->getController()->request->getSession()->write('KCFINDER', $config);

        parent::initialize($config);
    }
729605
protected function _initialize(KObjectConfig $config)
    {
        $config->append(array(
            'priority'        => self::PRIORITY_LOWEST,
            'event_publisher' => 'event.publisher',
            'immutable'       => false,
        ));

        parent::_initialize($config);
    }
1073181
protected function _initialize(KObjectConfig $config)
    {
        $config->append(array(
            'cookie_name' => 'referrer_'.$this->getIdentifier()->domain,
        ));

        parent::_initialize($config);
    }
70431
protected function _initialize(KObjectConfig $config)
    {
        $config->append(array(
            'type'      => 'JWT' ,
            'algorithm' => self::HS256
        ));

        parent::_initialize($config);
    }
845441
protected function _initialize(KObjectConfig $config)
    {
        $config->append(array(
            'lifetime'   =>  JFactory::getSession()->getExpire()
        ));

        parent::_initialize($config);
    }
766819
protected function _initialize(ObjectConfig $config)
    {
        $config->append(array(
            'language'          => locale_get_default(),
            'language_fallback' => 'en-GB',
            'cache'             =>  \Kodekit::getInstance()->isCache(),
            'cache_namespace'   => 'kodekit',
            'catalogue'         => 'default',
        ));

        parent::_initialize($config);
    }
1326055
public function init( $config = NULL )
    {
        $option                   = new Option();
        $option->shortCode        = 'h';
        $option->longCode         = 'help';
        $option->isOptional       = TRUE;
        $option->type             = Type::BOOLEAN;
        $option->shortDescription = 'Show the help menu';

        $this->options[ ] = $option;

        $option                   = new Option();
        $option->shortCode        = 'v';
        $option->longCode         = 'verbose';
        $option->isOptional       = TRUE;
        $option->type             = Type::BOOLEAN;
        $option->shortDescription = 'Show detailed log';

        $this->options[ ] = $option;
    }
1264809
protected function _initialize(KObjectConfig $config)
    {
        $config->append(array(
            'enabled'  => true,
            'priority' => self::PRIORITY_LOWEST,
            'loggers'  => array(),
        ));

        // Append the default logger if none is set.
        if (!count($config->loggers)) {
            $config->append(array('loggers' => array('com:activities.activity.logger')));
        }

        parent::_initialize($config);
    }
77116
public function initialize(array $config)
    {
        $this->setController($this->_registry->getController());

        $this->_registerPostTypesFromConfigure();

        $this->_addMenuItems();
    }