Bristol SU Support Package
ModuleManager.php
Go to the documentation of this file.
1 <?php
2 
4 
6 
11 {
12 
18  protected $aliases = [];
19 
26  public function register($alias)
27  {
28  if (!$this->exists($alias)) {
29  $this->aliases[] = $alias;
30  }
31  }
32 
38  public function aliases()
39  {
40  return $this->aliases;
41  }
42 
49  public function exists(string $alias): bool
50  {
51  return in_array($alias, $this->aliases());
52  }
53 
54 }