load yunpian.ini to initialize YunpianConf firstly:
<p>

</p>

@return Yunpian\Sdk\YunpianConf
971389
function init() {
        if (is_null($this->conf)) {
            $this->conf = [];
        }
        
        $yp = parse_ini_file("yunpian.ini");
        foreach ($yp as $key => $value) {
            $this->conf[$key] = $value;
        }
        return $this;
    }
1137103
public function initialize()
    {
        $driver = null;

        if (
            !in_array(strtolower($this->_class), $this->_supportedTypes) &&
            class_exists($this->_class)
        ) {
            $class = $this->_class;
            $driver = new $class($this->_options);
            if (!is_a($driver, 'Slick\Cache\DriverInterface')) {
                throw new Exception\InvalidDriverException(
                    "Class {$class} doesn't implement " .
                    "Slick\Cache\DriverInterface interface."
                );
            }
            return $driver;
        }

        switch (strtolower($this->_class)) {

            case 'file':            
                $driver = new Driver\File($this->_options);
                break;

            case 'memcached':            
                $driver = new Driver\Memcached($this->_options);
                break;

            default:
                throw new Exception\InvalidDriverException(
                    "Type {$this->_class} cache driver doesn't exists."
                );

        }
        return $driver;
    }
198604
protected function initialiseSession()
    {
        $this->queryStartTime = time();
        $initReplyString = $this->fetchURL($this->pazpar2InitURL());
        $initReply = GeneralUtility::xml2array($initReplyString);

        if ($initReply) {
            $status = $initReply['status'];
            if ($status === 'OK') {
                $sessionID = $initReply['session'];
                if ($sessionID) {
                    $this->pazpar2SessionID = $sessionID;
                } else {
                    GeneralUtility::devLog('did not receive pazpar2 session ID', 'pazpar2', 3);
                }

                // Extract access rights information if it is available.
                if (array_key_exists('accessRights', $initReply)) {
                    $accessRights = $initReply['accessRights'];
                    $this->setInstitutionName($accessRights['institutionName']);
                    $this->setAllTargetsActive($accessRights['allTargetsActive'] === '1');
                }
            } else {
                GeneralUtility::devLog('pazpar2 init status is not "OK" but "' . $status . '"', 'pazpar2', 3);
            }
        } else {
            GeneralUtility::devLog('could not parse pazpar2 init reply', 'pazpar2', 3);
        }

        return $this->pazpar2SessionID !== null;
    }
583943
public function init()
    {
        $config = \OxidEsales\Eshop\Core\Registry::getConfig();
        $user = oxNew(\OxidEsales\Eshop\Application\Model\User::class);
        $user->loadAdminUser();

        if (($user->oxuser__oxrights->value == 'malladmin' || $user->oxuser__oxrights->value == $config->getShopId())) {
            $this->isInitialized = true;
            $this->userId = $user->getId();
        } else {
            //user does not have sufficient rights for shop
            throw new Exception(self::ERROR_USER_NO_RIGHTS);
        }

        return $this->isInitialized;
    }
1258064
function initializer()
    {
        if ($this->initializer)
            return $this->initializer;

        // ..

        $initializer = new InitializerAggregate($this);

        # attach defaults:
        $initializer->addCallable(function($instance, $self) {
            if ($instance instanceof iServicesAware)
                // Inject Service Container Inside
                $instance->setServices($self);
        }, 10000);

        return $this->initializer = $initializer;
    }
342927
protected function initialize()
    {
        $this->configuration = new ValueHolder($this->loadConfiguration());
        $this->defaults = new ValueHolder($this->getDefaults());

        return $this;
    }
469514
protected function loadPreferredConfigFile()
    {
        if (file_exists('integrated.php')) {
            return $this->packageConfig = require('integrated.php');
        }

        if (file_exists('integrated.json')) {
            $this->packageConfig = json_decode(file_get_contents('integrated.json'), true);
        }
    }
549843
public function initialize()
    {
        $app = $this->app;

        $Driver = $this->options['driver'];
        $driver = new $Driver($this->options);

        if (is_callable($this->options['lang'])) {
            $fn = $this->options['lang'];
            $this->options['lang'] = $fn();
        }

        $Translator = new Translator($this->options, $driver);

        $app->container->singleton('translator', function () use ($Translator) {
            return $Translator;
        });
    }
1129821
public static function init () {
		if (! isset ($_SERVER['HTTP_USER_AGENT']) 
			|| preg_match ('{\bFirePHP/\d+\.\d+\b}', $_SERVER['HTTP_USER_AGENT'])
			|| isset ($_SERVER['HTTP_X_FIREPHP_VERSION'])) {

			header ('X-Wf-Protocol-1: http://meta.wildfirehq.org/Protocol/JsonStream/0.2');
			header ('X-Wf-1-Plugin-1: http://meta.firephp.org/Wildfire/Plugin/FirePHP/Library-FirePHPCore/0.3');
			header ('X-Wf-1-Structure-1: http://meta.firephp.org/Wildfire/Structure/FirePHP/FirebugConsole/0.1');
		}

		return function ($info) {
			header (FirePHP::format_header ($info));
		};
	}
1152624
private function _initialize()
    {
        list($status, $reason, $etag, $last_modified, $content_type,
            $content_length, $metadata) =
                $this->container->cfs_http->head_object($this);
        #if ($status == 401 && $this->_re_auth()) {
        #    return $this->_initialize();
        #}
        if ($status == 404) {
            return False;
        }
        if ($status < 200 || $status > 299) {
            throw new InvalidResponseException("Invalid response (".$status."): "
                . $this->container->cfs_http->get_error());
        }
        $this->etag = $etag;
        $this->last_modified = $last_modified;
        $this->content_type = $content_type;
        $this->content_length = $content_length;
        $this->metadata = $metadata;
        return True;
    }
888544
public static function _init()
	{
		\Lang::load('byte_units', true);

		static::$config     = \Config::load('num', true);
		static::$byte_units = \Lang::get('byte_units');
	}
1094194
public function init()
    {
        $this->message = Swift_Message::newInstance(
            null,
            null,
            Config::get('content_type'),
            Config::get('charset')
        )
            ->setFrom(Config::get('addr'), Config::get('name'));

        return $this;
    }
156204
public function initialize()
    {
        setlocale(LC_ALL, $this->locale->getIso() . '.' . $this->encoding);
        $this->localeInfo = localeconv();

        return $this;
    }
726140
private static function init()
    {
        if (!self::$defaultLng) {
            $config = Application::getConfigManager()->loadForModule('Cmf\Language');
            self::$defaultLng = strtolower($config->defaultLanguage);
            $currentLng = $config->currentLanguage;
            self::$currentLng = $currentLng ? strtolower($currentLng) : strtolower($config->defaultLanguage);
        }
    }
1352421
public static function init() {
		self::$server = new SwooleServer(Yesf::app()->getConfig('ip', Yesf::CONF_SERVER), Yesf::app()->getConfig('port', Yesf::CONF_SERVER)); 
		//基本配置
		$config = Yesf::app()->getConfig('advanced', Yesf::CONF_SERVER);
		$ssl = Yesf::app()->getConfig('ssl', Yesf::CONF_SERVER);
		if ($ssl && $ssl['enable']) {
			$config['ssl_cert_file'] = $ssl['cert'];
			$config['ssl_key_file'] = $ssl['key'];
		}
		if (Yesf::app()->getConfig('http2', Yesf::CONF_SERVER)) {
			$config['open_http2_protocol'] = true;
		}
		self::$server->set($config);
		//是否启用热更新
		Server::prepareHotReload();
		//基本事件
		self::$server->on('Start', [Server::class, 'onStart']);
		self::$server->on('Shutdown', [Server::class, 'onShutdown']);
		self::$server->on('ManagerStart', [Server::class, 'onManagerStart']);
		self::$server->on('ManagerStop', [Server::class, 'onManagerStop']);
		self::$server->on('WorkerStart', [Server::class, 'onWorkerStart']);
		self::$server->on('WorkerError', [Server::class, 'onWorkerError']);
		self::$server->on('Task', [Server::class, 'onTask']);
		self::$server->on('Finish', [Server::class, 'onFinish']);
		self::$server->on('PipeMessage', [Server::class, 'onPipeMessage']);
		//HTTP事件
		self::$server->on('Request', [HttpServer::class, 'onRequest']);
	}
355883
static function Init()
	{
		require_once 'verysimple/Phreeze/Controller.php';
		require_once 'verysimple/HTTP/RequestUtil.php';

		if (!self::$IS_INITIALIZED)
		{
			RequestUtil::NormalizeUrlRewrite();

			Controller::$SmartyViewPrefix = '';
			Controller::$DefaultRedirectMode = 'header';

			self::$IS_INITIALIZED = true;
		}

	}
594925
protected function _initPaths()
    {
        $path = Path::getInstance();
        $path->setRoot(ROOT);

        //  Setup all webroot paths
        $path->set('webroot', Configure::read('App.wwwRoot'));
        foreach ((array) Plugin::loaded() as $name) {
            $plgPath = Plugin::path($name) . '/' . Configure::read('App.webroot') . '/';
            $path->set('webroot', FS::clean($plgPath), Path::MOD_APPEND);
        }

        //  Setup applicatiojn paths
        $paths = Configure::read('App.paths');
        foreach ($paths as $alias => $_paths) {
            $path->set($alias, $_paths);
        }

        return $path;
    }