src/system/UsersModule/Collector/MessageModuleCollector.php 1 location
|
@@ 48-54 (lines=7) @@
|
| 45 |
|
* @param string $moduleName |
| 46 |
|
* @param MessageModuleInterface $service |
| 47 |
|
*/ |
| 48 |
|
public function add($moduleName, MessageModuleInterface $service) |
| 49 |
|
{ |
| 50 |
|
if (isset($this->messageModules[$moduleName])) { |
| 51 |
|
throw new \InvalidArgumentException('Attempting to register a message module with a duplicate module name. (' . $moduleName . ')'); |
| 52 |
|
} |
| 53 |
|
$this->messageModules[$moduleName] = $service; |
| 54 |
|
} |
| 55 |
|
|
| 56 |
|
/** |
| 57 |
|
* Get a MessageModuleInterface from the collection by moduleName. |
src/system/UsersModule/Collector/ProfileModuleCollector.php 1 location
|
@@ 67-73 (lines=7) @@
|
| 64 |
|
* @param string $moduleName |
| 65 |
|
* @param ProfileModuleInterface $service |
| 66 |
|
*/ |
| 67 |
|
public function add($moduleName, ProfileModuleInterface $service) |
| 68 |
|
{ |
| 69 |
|
if (isset($this->profileModules[$moduleName])) { |
| 70 |
|
throw new \InvalidArgumentException('Attempting to register a profile module with a duplicate module name. (' . $moduleName . ')'); |
| 71 |
|
} |
| 72 |
|
$this->profileModules[$moduleName] = $service; |
| 73 |
|
} |
| 74 |
|
|
| 75 |
|
/** |
| 76 |
|
* Get a ProfileModuleInterface from the collection by moduleName. |
src/system/SearchModule/Collector/SearchableModuleCollector.php 1 location
|
@@ 38-44 (lines=7) @@
|
| 35 |
|
* @param string $moduleName |
| 36 |
|
* @param SearchableInterface $service |
| 37 |
|
*/ |
| 38 |
|
public function add($moduleName, SearchableInterface $service) |
| 39 |
|
{ |
| 40 |
|
if (isset($this->searchableModules[$moduleName])) { |
| 41 |
|
throw new \InvalidArgumentException('Attempting to register a searchable module with a duplicate module name. (' . $moduleName . ')'); |
| 42 |
|
} |
| 43 |
|
$this->searchableModules[$moduleName] = $service; |
| 44 |
|
} |
| 45 |
|
|
| 46 |
|
/** |
| 47 |
|
* Get a SearchableInterface from the collection by moduleName. |