| @@ 130-143 (lines=14) @@ | ||
| 127 | * Returns array of aliases that should be set in common config |
|
| 128 | * @return array |
|
| 129 | */ |
|
| 130 | public function aliases() |
|
| 131 | { |
|
| 132 | if ($this->registerThemeAlias === true) { |
|
| 133 | if ($this->getModuleInstance() !== null) { |
|
| 134 | $reflectionClass = new \ReflectionClass($this->getModuleInstance()); |
|
| 135 | return [ |
|
| 136 | '@' . $this->getModule() => dirname($reflectionClass->getFileName()), |
|
| 137 | ]; |
|
| 138 | } |
|
| 139 | } |
|
| 140 | ||
| 141 | return []; |
|
| 142 | ||
| 143 | } |
|
| 144 | ||
| 145 | /** |
|
| 146 | * Override base init function to add event handler that will handle auth clients during configuration editing |
|
| @@ 80-93 (lines=14) @@ | ||
| 77 | * Returns array of aliases that should be set in common config |
|
| 78 | * @return array |
|
| 79 | */ |
|
| 80 | public function aliases() |
|
| 81 | { |
|
| 82 | if ($this->registerThemeAlias === true) { |
|
| 83 | if ($this->getModuleInstance() !== null) { |
|
| 84 | $reflectionClass = new \ReflectionClass($this->getModuleInstance()); |
|
| 85 | return [ |
|
| 86 | '@' . $this->getModule() => dirname($reflectionClass->getFileName()), |
|
| 87 | ]; |
|
| 88 | } |
|
| 89 | } |
|
| 90 | ||
| 91 | return []; |
|
| 92 | ||
| 93 | } |
|
| 94 | } |
|