[fire description]
@return [type] [description]
352933
public function fire()
	{
		$use = [];
		$modules = $this->getModules();
		foreach( $modules as $module ) {
			$wantsToUse = $this->ask( "install {$module->name}? [y/n]" );
			if( $wantsToUse === 'y' ) {
				$use[$module->name] = '*';
			}
		}
		$composer = $this->getComposerFiles();
		foreach( $use as $name => $version ) {
			$composer->require->{$name} = $version;
		}
		$this->saveComposerFile( $composer );
	}
711612
function Render()
    {
        if (!self::Guard()->Allow(Action::Read(), $this->content))
        {
            return '';
        }
        ContentTranslator::Singleton()->SetContent($this->content);
        $module = ClassFinder::CreateFrontendModule($this->content->GetType());
        $module->SetTreeItem($this->tree, $this->item);
        return $module->Render();
    }
512313
public function get()
    {
        $result = $this->getFromFireBase();

        $data = $this->addHeadersIfEmpty($result);

        return $this->makeCollection($data);
    }
379136
function createDescription() {
    $cnt = count( $this->description );
    if( 0 >= $cnt )
      return;
    $descriptions    = null;
    foreach( $this->description as $description ) {
      $attributes    = $this->_createParams( $description['params'], array( 'ALTREP', 'LANGUAGE' ));
      $content       = $this->_strrep( $description['value'] );
      $descriptions .= $this->_createElement( 'DESCRIPTION', $attributes, $content );
    }
    return $descriptions;
  }
1211640
protected function getDescription()
    {
        // this just allows the controller to overide the description
        if (strlen($this->description) <= 5) {
            $this->description = $this->page['description'];
        }

        return trim($this->description . (strlen($this->description) < 2 ? '' : ' | ') . config('app.description'));
    }
1194070
public function fire()
    {
        $key = Str::random(32);

        if ($this->option('show')) {
            $this->comment($key);

            return;
        }

        if (file_exists($path = $this->envPath()) === false) {
            return $this->displayKey($key);
        }

        // check if there is already a secret set first
        if (Str::contains(file_get_contents($path), 'JWT_SECRET') === false) {
            return file_put_contents($path, PHP_EOL."JWT_SECRET=$key", FILE_APPEND);
        } elseif ($this->isConfirmed() === false) {
            $this->comment('Phew... No changes were made to your secret key.');

            return;
        }

        file_put_contents($path, str_replace(
            'JWT_SECRET='.$this->laravel['config']['jwt.secret'],
            'JWT_SECRET='.$key, file_get_contents($path)
        ));

        $this->displayKey($key);
    }
176662
public function flash()
    {
        if($this->flashdata === null)
        {
            $this->flashdata = new Flash(isset($_SESSION[$this->flashslot]) ? $_SESSION[$this->flashslot] : array());
        }
        
        return $this->flashdata;
    }
911406
protected function getFlashes()
    {
        /* @var $session \yii\web\Session */
        $session = Yii::$app->has('session', true) ? Yii::$app->get('session') : null;
        if ($session === null || !$session->getIsActive()) {
            return [];
        }

        $counters = $session->get($session->flashParam, []);
        $flashes = [];
        foreach (array_keys($counters) as $key) {
            if (array_key_exists($key, $_SESSION)) {
                $flashes[$key] = $_SESSION[$key];
            }
        }
        return $flashes;
    }
453416
public function fire()
    {
        $directoryModels = [];
        $models = $this->argument('model');

        foreach ($models as $model)
        {
            $instance = $this->getModelInstance($model);
            $this->reindexModel($instance);
        }

        if ($directories = $this->option('dir'))
        {
            $directoryModels = array_diff(Utils::findSearchableModels($directories), $models);

            foreach ($directoryModels as $model)
            {
                $instance = $this->getModelInstance($model);
                $this->reindexModel($instance);
            }
        }

        if (empty($models) && empty($directoryModels))
        {
            $this->info('No models found.');
        }
    }
703850
protected function fireEvent($event, $data)
    {
        $fireableEvent = isset($this->fireEvents[$event]) ? $this->fireEvents[$event] : null;

        if (! is_null($fireableEvent)) {
            return $this->event->fire($fireableEvent, $data);
        }

        return null;
    }
216445
public function run()
    {
        $flashMessages = Yii::$app->session->getAllFlashes();
        if (empty($flashMessages)) {
            return;
        }
        $closeLabel = Yii::t('app', 'Close');
        $baseCss = 'alert';
        if ($this->dismissible) {
            $baseCss .= ' alert-dismissible';
            $dismissButton = <<<HTML
<button type="button" class="close" data-dismiss="alert" aria-label="$closeLabel">
    <span aria-hidden="true">&times;</span>
</button>
HTML;
        }
        echo '<div class="flashes">';
        foreach ($flashMessages as $key => $messages) {
            $cssClasses = $baseCss . ' alert-'.(isset($this->map[$key]) ? $this->map[$key] : $key);
            if (!is_array($messages)) {
                $messages = [$messages];
            }
            foreach ($messages as $message) {
                echo '<div class="'.$cssClasses.'" role="alert">'.$dismissButton.$message.'</div>';
            }
        }
        echo '</div>';
    }
1026195
public function flash()
    {
        if (is_null($this->flash)) {
            $this->flash = new SessionFlash($this);
        }

        return $this->flash;
    }
1223483
public function fire()
	{
		$query = \DB::table('translations')->select('locale', 'group', 'name', 'value');
		$this->addOptionToQuery($query, 'locale');
		$this->addOptionToQuery($query, 'group');
		$results = $query->get();

		// Reorder the data
		$dump = [];
		foreach($results as $result) {
			$dump[$result->locale][$result->group][$result->name] = $result->value;
		}
		$this->write($dump);
	}
841784
public function describe()
    {
        $this->enableByDefault();
        $this->registerPrerequisite(
            function (Settings $settings) {
                return !$settings->tryGet(KnownSettingsEnum::SEND_ONLY);
            },
            "Send only endpoints can't use FLR since it only applies to messages being received."
        );
        $this->registerPrerequisite(
            function (Settings $settings) {
                return $this->getMaxRetries($settings) > 0;
            },
            "FLR was disabled in config since it's set to 0."
        );
    }
1143228
public function run()
    {
        $flashes = Yii::$app->session->getAllFlashes();
        $appendCss = isset($this->options['class']) ? ' ' . $this->options['class'] : '';

        foreach ($flashes as $type => $data) {
            if (isset($this->alertLevels[$type])) {
                $data = (array) $data;
                foreach ($data as $i => $message) {
                    /* initialize css class for each alert box */
                    $this->options['class'] = 'alert ' . $this->alertLevels[$type] . $appendCss;

                    /* assign unique id to each alert box */
                    $this->options['id'] = $this->getId() . '-' . $type . '-' . $i;

                    echo $this->renderHtml($message, $this->options);
                }

                Yii::$app->session->removeFlash($type);
            }
        }
    }
13299
public function behaviors()
    {
        $behaviors = parent::behaviors();
        $behaviors['slug'] = [
            'class' => AttributeBehavior::className(),
            'attributes' => [
                ActiveRecord::EVENT_BEFORE_INSERT => ['slug']
            ],
            'value' => function ($event) {
                return Inflector::slug($event->sender->name,'');
            }
        ];
        $behaviors['letter'] = [
            'class' => AttributeBehavior::className(),
            'attributes' => [
                ActiveRecord::EVENT_BEFORE_INSERT => ['letter']
            ],
            'value' => function ($event) {
                return strtoupper(substr($event->sender->slug, 0, 1));
            }
        ];
        return $behaviors;
    }
1292243
public function showErrors()
    {
        if (count($this->errors)) {
            $messages = [];
            $messages[] = GeneralUtility::makeInstance(
                FlashMessage::class,
                'There were errors. Check ke_search log for details.'. "\n",
                '',
                \TYPO3\CMS\Core\Messaging\FlashMessage::ERROR,
                false
            );
            return $this->renderFlashMessages($messages);
        } else {
            return '';
        }
    }