35 if ($this->app->getBootStatus(
'full_boot_completed')) {
50 if ($this->app->getBootStatus(
'service_boot_completed')) {
55 $this->app->loadCore();
57 if (!$this->app->internal_services->db) {
60 $this->app->internal_services->session->start();
61 $this->app->internal_services->translator->bootTranslations();
63 \Elgg\Application\SystemEventHandlers::init();
65 $this->app->setBootStatus(
'full_boot_completed',
true);
77 $this->app->internal_services->boot->boot($this->app->internal_services);
80 $this->app->internal_services->translator->bootTranslations();
82 $this->app->setBootStatus(
'service_boot_completed',
true);
91 if ($this->app->getBootStatus(
'plugins_boot_completed') || !$this->app->internal_services->db) {
95 $events = $this->app->internal_services->events;
97 $events->registerHandler(
'plugins_load:before',
'system',
'elgg_views_boot');
98 $events->registerHandler(
'plugins_load:after',
'system',
function() {
99 $this->app->internal_services->session->boot();
102 $events->registerHandler(
'plugins_boot',
'system',
function() {
105 $events->registerHandler(
'plugins_boot',
'system',
function() {
110 $this->app->internal_services->plugins->build();
115 $events->triggerSequence(
'plugins_load',
'system');
119 $events->triggerSequence(
'plugins_boot',
'system');
121 $this->app->setBootStatus(
'plugins_boot_completed',
true);
130 if ($this->app->getBootStatus(
'application_boot_completed') || !$this->app->internal_services->db) {
134 $events = $this->app->internal_services->events;
136 $this->app->internal_services->views->clampViewtypeToPopulatedViews();
137 $this->app->allowPathRewrite();
140 $events->triggerSequence(
'init',
'system');
142 $this->app->setBootStatus(
'full_boot_completed',
true);
146 $this->app->internal_services->accessCollections->markInitComplete();
149 $events->triggerSequence(
'ready',
'system');
151 $this->app->setBootStatus(
'application_boot_completed',
true);
180 $events = $this->app->internal_services->events;
182 foreach ($spec as
$name => $types) {
183 foreach ($types as
$type => $callbacks) {
184 foreach ($callbacks as $callback => $event_spec) {
185 if (!is_array($event_spec)) {
189 $unregister = (bool)
elgg_extract(
'unregister', $event_spec,
false);
192 $events->unregisterHandler(
$name,
$type, $callback);
212 foreach ($routes as
$name => $def) {
213 $this->app->internal_services->routes->register(
$name, $def);
229 if (!is_array($action_spec)) {
static includeFile($file)
Include a file with as little context as possible.
elgg_views_boot()
Initialize viewtypes on system boot event This ensures simplecache is cleared during upgrades...
bootPlugins()
Boot plugins.
static elgg()
Get the Elgg codebase path with "/".
registerActions()
Register core actions.
if(!$user||!$user->canDelete()) $name
__construct(Application $app)
Constructor.
c Accompany it with the information you received as to the offer to distribute corresponding source complete source code means all the source code for all modules it plus any associated interface definition plus the scripts used to control compilation and installation of the executable as a special the source code distributed need not include anything that is normally and so on of the operating system on which the executable unless that component itself accompanies the executable If distribution of executable or object code is made by offering access to copy from a designated then offering equivalent access to copy the source code from the same place counts as distribution of the source even though third parties are not compelled to copy the source along with the object code You may not or distribute the Program except as expressly provided under this License Any attempt otherwise to sublicense or distribute the Program is void
bootServices()
Boot core services.
registerRoutes()
Register core routes.
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
__invoke()
Full application boot Boots services, plugins and trigger init/ready events.
setEntityClasses()
Set core entity classes.
bootApplication()
Finish bootstrapping the application.
registerEvents()
Register core events.
if(!$menu instanceof\Elgg\Menu\PreparedMenu) $actions
Load, boot, and implement a front controller for an Elgg application.
elgg_set_entity_class(string $type, string $subtype, string $class= '')
Sets class constructor name for entities with given type and subtype.
Handles application boot sequence.