|
@@ 107-113 (lines=7) @@
|
| 104 |
|
} |
| 105 |
|
|
| 106 |
|
foreach ($command->getAliases() as $alias) { |
| 107 |
|
if (isset($this->commands[$alias])) { |
| 108 |
|
throw new TelegramSDKException(sprintf( |
| 109 |
|
'[Error] Alias [%s] conflicts with command name of "%s" try with another name or remove this alias from the list.', |
| 110 |
|
$alias, |
| 111 |
|
get_class($command) |
| 112 |
|
)); |
| 113 |
|
} |
| 114 |
|
|
| 115 |
|
if (isset($this->commandAliases[$alias])) { |
| 116 |
|
throw new TelegramSDKException(sprintf( |
|
@@ 115-121 (lines=7) @@
|
| 112 |
|
)); |
| 113 |
|
} |
| 114 |
|
|
| 115 |
|
if (isset($this->commandAliases[$alias])) { |
| 116 |
|
throw new TelegramSDKException(sprintf( |
| 117 |
|
'[Error] Alias [%s] conflicts with another command\'s alias list: "%s", try with another name or remove this alias from the list.', |
| 118 |
|
$alias, |
| 119 |
|
get_class($command) |
| 120 |
|
)); |
| 121 |
|
} |
| 122 |
|
|
| 123 |
|
$this->commandAliases[$alias] = $command; |
| 124 |
|
} |