Elgg  Version master
PluginBootstrap.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg;
4 
6 
10 abstract class PluginBootstrap implements PluginBootstrapInterface {
11 
18  public function __construct(protected \ElggPlugin $plugin, protected PublicContainer $dic) {
19  }
20 
24  public function elgg() {
25  return $this->dic;
26  }
27 
31  public function plugin() {
32  return $this->plugin;
33  }
34 }
$plugin
plugin()
{Returns plugin entity this bootstrap is related to.}
Plugin class containing helper functions for plugin activation/deactivation, dependency checking capa...
Definition: ElggPlugin.php:17
__construct(protected\ElggPlugin $plugin, protected PublicContainer $dic)
Constructor.
elgg()
{Returns Elgg&#39;s public DI container.PublicContainer}
Plugin bootstrap.
Plugin bootstrap interface.