Elgg  Version 5.1
PluginBootstrap.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg;
4 
6 
10 abstract class PluginBootstrap implements PluginBootstrapInterface {
11 
15  protected $plugin;
16 
20  protected $dic;
21 
28  public function __construct(\ElggPlugin $plugin, PublicContainer $dic) {
29  $this->plugin = $plugin;
30  $this->dic = $dic;
31  }
32 
36  public function elgg() {
37  return $this->dic;
38  }
39 
43  public function plugin() {
44  return $this->plugin;
45  }
46 }
$plugin
__construct(\ElggPlugin $plugin, PublicContainer $dic)
Constructor.
plugin()
{Returns plugin entity this bootstrap is related to.}
Plugin class containing helper functions for plugin activation/deactivation, dependency checking capa...
Definition: ElggPlugin.php:16
elgg()
{Returns Elgg&#39;s public DI container.PublicContainer}
Plugin bootstrap.
Plugin bootstrap interface.