Elgg  Version 3.0
PluginBootstrap.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg;
4 
6 use ElggPlugin;
7 
11 abstract class PluginBootstrap implements PluginBootstrapInterface {
12 
16  protected $plugin;
17 
21  protected $dic;
22 
29  public function __construct(ElggPlugin $plugin, PublicContainer $dic) {
30  $this->plugin = $plugin;
31  $this->dic = $dic;
32  }
33 
37  public function elgg() {
38  return $this->dic;
39  }
40 
44  public function plugin() {
45  return $this->plugin;
46  }
47 }
$plugin
__construct(ElggPlugin $plugin, PublicContainer $dic)
Constructor.
plugin()
{Returns plugin entity this bootstrap is related to.ElggPlugin}
elgg()
{Returns Elgg&#39;s public DI container.PublicContainer}
Configuration exception.
Plugin bootstrap.
Plugin bootstrap interface.