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 class containing helper functions for plugin activation/deactivation, dependency checking capa...
Definition: ElggPlugin.php:17
Plugin bootstrap.
plugin()
{Returns plugin entity this bootstrap is related to.\ElggPlugin}
elgg()
{Returns Elgg's public DI container.PublicContainer}
__construct(protected \ElggPlugin $plugin, protected PublicContainer $dic)
Constructor.
$plugin