29 if ($this->app->getBootStatus(
'full_boot_completed')) {
44 if ($this->app->getBootStatus(
'service_boot_completed')) {
49 $this->app->loadCore();
51 if (!$this->app->internal_services->db) {
54 $this->app->internal_services->session->start();
55 $this->app->internal_services->translator->bootTranslations();
57 \Elgg\Application\SystemEventHandlers::init();
59 $this->app->setBootStatus(
'full_boot_completed',
true);
71 $this->app->internal_services->boot->boot($this->app->internal_services);
74 $this->app->internal_services->translator->bootTranslations();
76 $this->app->setBootStatus(
'service_boot_completed',
true);
85 if ($this->app->getBootStatus(
'plugins_boot_completed') || !$this->app->internal_services->db) {
89 $events = $this->app->internal_services->events;
91 $events->registerHandler(
'plugins_load:before',
'system',
'elgg_views_boot');
92 $events->registerHandler(
'plugins_load:after',
'system',
function() {
93 $this->app->internal_services->session->boot();
96 $events->registerHandler(
'plugins_boot',
'system',
function() {
99 $events->registerHandler(
'plugins_boot',
'system',
function() {
104 $this->app->internal_services->plugins->build();
109 $events->triggerSequence(
'plugins_load',
'system');
113 $events->triggerSequence(
'plugins_boot',
'system');
115 $this->app->setBootStatus(
'plugins_boot_completed',
true);
124 if ($this->app->getBootStatus(
'application_boot_completed') || !$this->app->internal_services->db) {
128 $events = $this->app->internal_services->events;
130 $this->app->allowPathRewrite();
133 $events->triggerSequence(
'init',
'system');
135 $this->app->setBootStatus(
'full_boot_completed',
true);
139 $this->app->internal_services->accessCollections->markInitComplete();
142 $events->triggerSequence(
'ready',
'system');
144 $this->app->setBootStatus(
'application_boot_completed',
true);
173 $events = $this->app->internal_services->events;
175 foreach ($spec as
$name => $types) {
176 foreach ($types as
$type => $callbacks) {
177 foreach ($callbacks as $callback => $event_spec) {
178 if (!is_array($event_spec)) {
182 $unregister = (bool)
elgg_extract(
'unregister', $event_spec,
false);
185 $events->unregisterHandler(
$name,
$type, $callback);
205 foreach ($routes as
$name => $def) {
206 $this->app->internal_services->routes->register(
$name, $def);
222 if (!is_array($action_spec)) {
233 unset($action_spec[
'access']);
234 unset($action_spec[
'controller']);
235 unset($action_spec[
'filename']);
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
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.
__construct(protected Application $app)
Constructor.
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.