/* Startup method.
550223
protected function startup()
    {
        parent::startup();

        // change language
        if (is_numeric($this->getParam('l'))) {
            $this->changeLanguage($this->getParam('l'));
        }

        // set language
        if (is_numeric($this->getParam('language'))) {
            $this->language = $this->em->find('WebCMS\Entity\Language', $this->getParam('language'));
        } else {
            $this->language = $this->em->getRepository('WebCMS\Entity\Language')->findOneBy(array(
                'defaultFrontend' => TRUE,
            ));
        }

        $this->abbr = $this->language->getDefaultFrontend() ? '' : $this->language->getAbbr().'/';

        // load languages
        $this->languages = $this->em->getRepository('WebCMS\Entity\Language')->findAll();

        setlocale(LC_ALL, $this->language->getLocale());
        \WebCMS\Helpers\PriceFormatter::setLocale($this->language->getLocale());

        // translations
        $translation = new \WebCMS\Translation\Translation($this->em, $this->language, 0, $this->getContext()->getService('cacheStorage'));
        $this->translation = $translation->getTranslations();
        $this->translator = new \WebCMS\Translation\Translator($this->translation);

        // system settings
        $this->settings = new \WebCMS\Settings($this->em, $this->language);
        $this->settings->setSettings($this->getSettings());

        // mobile device detection
        $this->mobileDetect = new \WebCMS\MobileDetect;

        // system helper sets variables
        \WebCMS\Helpers\SystemHelper::setVariables(array(
            'baseUrl' => $this->presenter->getHttpRequest()->url->baseUrl,
            'infoEmail' => $this->settings->get('Info email', 'basic')->getValue(),
        ));

        $id = $this->getParam('id');
        if ($id) {
            $this->actualPage = $this->em->find('WebCMS\Entity\Page', $id);

            if ($this->actualPage->getRedirect() != NULL) {
                if (strpos($this->actualPage->getRedirect(), 'http') === false) {
                    $this->redirectUrl($this->presenter->getHttpRequest()->url->baseUrl . $this->actualPage->getRedirect());   
                } else {
                    $this->redirectUrl($this->actualPage->getRedirect());
                }
            }
        }

        if (!file_exists('sitemap.xml')) {
            $this->generateSitemap();
        }

        if (is_object($this->actualPage)) {
            $this->setDefaultSeo();
        }

        // generate sitemap if doesn't exist yet
        if (!file_exists('sitemap.xml')) {
            $this->generateSitemap();
        }

        if ($this->isAjax()) {
            $this->invalidateControl();

            $this->payload->title = $this->template->seoTitle;
            $this->payload->url = $this->link('this', array(
                'path' => $this->actualPage->getPath(),
                'abbr' => $this->abbr,
            ));
            $this->payload->nameSeo = $this->actualPage->getSlug();
            $this->payload->name = $this->actualPage->getTitle();
            $this->payload->class = $this->actualPage->getClass();
        }
    }
1276679
public function startup() {
        if ($this->_blacklist) {
            return;
        }

        // Load files from config paths
        foreach ($this->getParser()->getPaths() as $path) {
            foreach (glob($path . 'censored.*') as $file) {
                $this->addLoader(new FileLoader($file));
            }
        }

        // Load the contents into the blacklist
        foreach ($this->getLoaders() as $loader) {
            $loader->setParser($this->getParser());

            if ($blacklist = $loader->load()) {
                $this->blacklist($blacklist);
            }
        }
    }
786032
@Override
  public void start()
  {
    LOGGER.debug("Start Loading");
    // validate parameters
    validateParameters();

    if (_op == null)
    {
      this.abort(new ConnectionError("Loader started with no operation"));
      return;
    }

    initDateFormats();

    initQueues();

    if (_is_first_start_call)
    {
      // is this the first start call?

      try
      {
        if (_startTransaction)
        {
          LOGGER.debug("Begin Transaction");
          _processConn.createStatement().execute("begin transaction");
        }
        else
        {
          LOGGER.debug("No Transaction started");
        }
      }
      catch (SQLException ex)
      {
        abort(new Loader.ConnectionError("Failed to start Transaction",
                                         Utils.getCause(ex)));
      }

      if (_truncate)
      {
        truncateTargetTable();
      }

      try
      {
        if (_before != null)
        {
          LOGGER.debug("Running Execute Before SQL");
          _processConn.createStatement().execute(_before);
        }
      }
      catch (SQLException ex)
      {
        abort(new Loader.ConnectionError(
            String.format("Execute Before SQL failed to run: %s", _before),
            Utils.getCause(ex)));
      }
    }
  }
127693
protected static function boot()
    {
        parent::boot();

        static::creating(function ($comment) {
            $comment->{$comment->getKeyName()} = Uuid::uuid4()->toString();
        });
    }
761907
public function boot()
	{
		if ($this->booted) return;

		array_walk($this->serviceProviders, function($p) { $p->boot(); });

		$this->bootApplication();
	}
186905
@Override
	public void start() {
		if (state.start()){
			try{
				doStart();
				state.finishStarting();
			}catch(Exception e){
				state.failStarting();
				logger.warn("Failed to start {}", this.getClass().getName(), e);
			}
		}

	}
842126
public void start()
  {
    _state = _state.toStart();
    
    _bufferCapacity = DEFAULT_SIZE;
    
    _tBuf = TempBuffer.create();
    
    _buffer = _tBuf.buffer();
    _startOffset = bufferStart();
    _offset = _startOffset;

    _contentLength = 0;
  }
1111341
public void start() {
        application = new CitrusRemoteApplication(configuration);
        port(configuration.getPort());
        application.init();

        if (!configuration.isSkipTests()) {
            new RunController(configuration).run();
        }

        if (configuration.getTimeToLive() == 0) {
            stop();
        }
    }
1257625
@Override
  protected void startUp() {
    try {
      startRTS();
    } catch (Exception e) {
      throw new IllegalArgumentException("Cannot initiate RTS. Missing or bad arguments");
    }
    try {
      startHFTA();
    } catch (Exception e) {
      throw new IllegalArgumentException("Cannot initiate HFTA processes. Missing or bad arguments");
    }
    try {
      startGSEXIT();
    } catch (Exception e) {
      throw new IllegalArgumentException("Cannot initiate GSEXIT processes. Missing or bad arguments");
    }
  }
1205055
@Start(priority = 14)
   public void start() {
      initMBeanServer(globalConfig);

      if (mBeanServer != null) {
         Collection<ComponentRef<?>> components = basicComponentRegistry.getRegisteredComponents();
         Collection<ResourceDMBean> resourceDMBeans = getResourceDMBeansFromComponents(components);
         nonCacheDMBeans = getNonCacheComponents(resourceDMBeans);

         registrar.registerMBeans(resourceDMBeans);
         needToUnregister = true;
         log.mbeansSuccessfullyRegistered();
      }
   }
972218
protected function startup()
    {
        parent::startup();

        if (!$this->getUser()->isLoggedIn() && $this->presenter->getName() !== "Admin:Login") {
            $this->forward(':Admin:Login:');
        }

        $this->processLanguage();

        // system settings
        $this->settings = new \WebCMS\Settings($this->em, $this->state->language);
        $this->settings->setSettings($this->getSettings());

        // system helper sets variables
        \WebCMS\Helpers\SystemHelper::setVariables(array(
            'baseUrl' => $this->presenter->getHttpRequest()->url->baseUrl,
            'infoEmail' => $this->settings->get('Info email', 'basic')->getValue(),
        ));

        // price formatting
        $this->priceFormatter = new \WebCMS\Helpers\PriceFormatter($this->state->language->getLocale());

        $id = $this->getParam('idPage');
        if ($id) {
            $this->actualPage = $this->em->find('WebCMS\Entity\Page', $id);
        }

        $this->checkPermission();

        $this->logAction();
    }
1100839
public static void start(String args[]) {
        log.debug("windowsStart called");
        boot = new Boot();
        boot.start();

        // block until interrupted by stop() or the undertow dies
        while (boot.getServer().isRunning()) {
            synchronized (SERVICE) {
                try {
                    SERVICE.wait(30000);  // wait 30 seconds and check if stopped
                } catch (InterruptedException ie) {
                }
            }
        }
    }
323771
@Override
    protected void startUp() throws Exception {
        long traceId = LoggerHelpers.traceEnterWithContext(log, this.objectId, "startUp");
        try {
            log.info("Starting gRPC server listening on port: {}", this.config.getPort());
            this.server.start();
        } finally {
            LoggerHelpers.traceLeave(log, this.objectId, "startUp", traceId);
        }
    }
844330
@Override
    public void start() {
        String res = launchPing();
        if (res != null && res.length() > 0) {
            res = res.toLowerCase();
            if (res.contains(Cmd.PING_UNREACHABLE) && !res.contains(Cmd.PING_EXCEED)) {
                // Failed
                mLossRate = 1f;
                mError = Cmd.HOST_UNREACHABLE_ERROR;
            } else {
                // Succeed
                mLossRate = parseLoss(res);
                mDelay = parseDelay(res);
                if (isAnalysisIp)
                    mIp = parseIp(res);
            }
        } else {
            mError = Cmd.DROP_DATA_ERROR;
        }
    }
1040271
@Override
    protected void doStart() throws Exception
    {
        log.info("starting...");
        super.doStart();
        _client = newClient(_serverString);
        if (_client == null)
        {
            throw new IllegalStateException("newClient(" + _serverString + ") returns null.");
        }
        log.info("use " + _client.getClass().getSimpleName() + " as client factory.");
        _client.establish();
        log.info("started.");
    }
18850
private function startup()
	{
		$this->registerSigHandlers();
		$this->pruneDeadWorkers();
		Resque_Event::trigger('beforeFirstFork', $this);
		$this->registerWorker();
	}
1033900
public void startUp() {
        sendConsoleMessage(Level.INFO, getLanguageManager().getString("loading_account_manager"));
        accountManager = new AccountManager();
        //addMetricsGraph("Multiworld", getConfigurationManager().isMultiWorld());
        startMetrics();
        sendConsoleMessage(Level.INFO, getLanguageManager().getString("account_manager_loaded"));
        eventManager = new EventManager();
        initializeWorldGroup();
    }