Set the current hash id to work with the obj

@param  mixed $app
@return void
977115
public function onConstruct($app)
    {
        //if not null
        if (!is_null($app)) {
            $key = $this->settingsKey;
            $this->$key = $app;
        }
    }
308621
public function setInstance(Container $app)
    {
        $app->instance('app', $app);
        $app->instance(Container::class, $app);

        if ($this->framework === 'lumen') {
            $app->instance(LumenApplication::class, $app);
        }

        Container::setInstance($app);
        Context::setApp($app);
        Facade::clearResolvedInstances();
        Facade::setFacadeApplication($app);
    }
221377
public function setApplication($application) {
        $this->application = $application;
        foreach($this->translations as $locale => $translations) {
            foreach($translations as $translation) {
                $translation->translation_key = $this;
            }
        }
    }
529854
final protected function resolveApplicationBindings($app): void
    {
        foreach ($this->overrideApplicationBindings($app) as $original => $replacement) {
            $app->bind($original, $replacement);
        }
    }
1289824
public function doUpdate( App $app ) {
		$update = function () use ( $app ) {
			if ( ! $app->image_sizes ) {
				return FALSE;
			}
			foreach ( $app->image_sizes as $name => $args ) {
				if ( ! is_array( $args ) ) {
					throw new ConfigException(
					    __("All elements of 'image_sizes' property in '*.config.json' must be arrays.", 'wpf') );
				} elseif ( $name == 'default') {
					set_post_thumbnail_size( ...$args );
					continue;
				}
				add_image_size( $name, ...$args );
			}
		};
		add_action('after_setup_theme', $update );
	}
688259
public function boot(Application $app)
    {
        if ($app['capsule.options']['bootEloquent']) {
            $app->before(function () use ($app) {
                $app['capsule'];
            }, Application::EARLY_EVENT);
        }
    }
1343421
public function bootstrap($app)
    {
        if ($this->isBootstrapI18n) {
            $this->bootstrapI18n($app);
        }

        $bootstraps = [];
        foreach ($this->getDepends() as $key => $depends) {
            foreach ($depends as $name => $depend) {
                switch ($key) {
                    case 'bootstrap':
                        $bootstraps[$name] = $depend;
                    break;
                    case 'modules':
                        if (!$app->hasModule($name)) {
                            $app->setModule($name, $depend);
                        }
                    break;
                    case 'components':
                        if (in_array($name, self::CORE_COMPONENTS) || !$app->has($name)) {
                            if (in_array($name, self::CORE_COMPONENTS)) {
                                if (!empty(self::$coreComponents[$name])) {
                                    break;
                                }

                                self::$coreComponents[$name] = true;
                            }

                            $app->set($name, $depend);
                        }
                    break;
                }
            }
        }

        foreach ($bootstraps as $bootstrapKey => $bootstrap) {
            if (is_string($bootstrap)) {
                $module = $app->getModule($bootstrap);
                if ($module instanceof BootstrapInterface) {
                    $module->bootstrap($app);
                }
            } else if (is_callable($bootstrap)) {
                if (in_array($bootstrapKey, self::$boostrapped)) {
                    continue;
                }

                $bootstrap();
                self::$boostrapped[] = $key;
            } else {
                $bootstrapKey = $bootstrap['class'];
                if (array_key_exists('moduleId', $bootstrap)) {
                    $bootstrapKey .= '-' . $bootstrap['moduleId'];
                }

                if (in_array($bootstrapKey, self::$boostrapped)) {
                    continue;
                }

                self::$boostrapped[] = $bootstrap['class'];
                $bootstrap = \yii::createObject($bootstrap);
                $bootstrap->bootstrap($app);
            }
        }
    }
1141316
protected function setAppId() {
    if ($app_id = $this->getConfigValue('cloud.appId')) {
      $this->appId = $app_id;
    }
    else {
      $this->say("<info>To generate an alias for the Acquia Cloud, BLT require's your Acquia Cloud application ID.</info>");
      $this->say("<info>See https://docs.acquia.com/acquia-cloud/manage/applications.</info>");
      $this->appId = $this->askRequired('Please enter your Acquia Cloud application ID');
      $this->writeAppConfig($this->appId);
    }
  }
1297604
public function doUpdate( App $app ) {
		// Require ACF
		if ( ! is_plugin_active('advanced-custom-fields-pro/acf.php') and current_user_can('activate_plugins') ) {
			// Stop activation redirect and show error
			throw new ConfigException(
			    __('Sorry, but this plugin requires the "ACF Pro" to be installed and active.', 'wpf') );
		}
		// PHP_VERSION_ID is available as of PHP 5.2.7, if our
		// version is lower than that, then emulate it
		if ( ! defined('PHP_VERSION_ID') ) {
			$version = explode('.', PHP_VERSION );
			define('PHP_VERSION_ID', ( $version[0] * 10000 + $version[1] * 100 + $version[2] ) );
		}
		if ( PHP_VERSION_ID < 70000) {
			throw new ConfigException(
                __('Sorry, WPF framework supports PHP after 7.0 version.', 'wpf') );
		}
	}
478650
public void setAppId(String appId) {
        if (appId == null) {
            _properties.remove(AMQP_PROP_APP_ID);
            return;
        }
        _properties.put(AMQP_PROP_APP_ID, appId);
    }
1187938
public function bootstrap($app)
    {
        $this->buildModelMap();
        $app->on(Application::EVENT_AFTER_REQUEST, function () {
            $this->process();
        });
    }
273283
final private function __setAppData()
    {
        if ($this->template === 'app') {
            // Save the app data in $this->data['__app']
            $this->data['__app'] = $this->data;
            // Esc the function
            return;
        }

        // Save the app data to this $this->data['__app'] for next Controller
        $this->data['__app'] = $this->incomingData['__app'];

        // Include the app data with this current items data
        $this->data = array_merge($this->data['__app'], $this->data);
    }
184309
protected function addUrlManagerRules($app)
    {
        $app->urlManager->addRules([new GroupUrlRule([
                'prefix' => $this->id,
                'rules' => require __DIR__ . '/url-rules.php',
            ])], true);
    }
64367
public function doUpdate( App $app ) {
		$update = function () use ( $app ) {
			if ( ! $app->remove_actions ) {
				return FALSE;
			}
			foreach ( $app->remove_actions as $args ) {
				if ( ! is_array( $args ) ) {
					throw new ConfigException(
					    __("All elements of 'remove_actions' property in '*.config.json' must be arrays too.", 'wpf') );
				}
				remove_action( ...$args );
			}
		};
		add_action('after_setup_theme', $update );
	}
403208
public function bootstrap($app)
    {
        $app->on(Application::EVENT_BEFORE_REQUEST, function () {
            $this->retrieveInfo();
            $this->retrieveLanguageFromGeo();
        });
        $app->on(Application::EVENT_BEFORE_ACTION, function () {
            $this->retrieveCookieLanguage();
        });
        $this->registerTranslations();
    }
566339
public function boot(Application $app)
    {
        $this->app = $app;

        $this->config = $app->make('config');

        return $this;
    }
1337339
public function beforeRun($app)
    {
        foreach ($app->tags as $name => $config) {
            TagParser::inject($name, $config);
        }
        
        foreach ($this->getModules() as $id => $module) {
            foreach ($module->urlRules as $key => $rule) {
                if (is_string($key)) {
                    $this->_urlRules[$key] = $rule;
                } else {
                    $this->_urlRules[] = $rule;
                }
            }
            
            // get all api rules (since 1.0.10)
            foreach ($module->apiRules as $endpoint => $rule) {
                $this->_apiRules[$endpoint] = $rule;
            }
            
            /**
             * 'api-admin-user' => 'admin\apis\UserController',
             * 'api-cms-navcontainer' => 'admin\apis\NavContainerController'
             */
            foreach ($module->apis as $alias => $class) {
                $this->_apis[$alias] = ['class' => $class, 'module' => $module];
            }
            
            foreach ($module->tags as $name => $config) {
                TagParser::inject($name, $config);
            }
        }
    }