@@ -70,7 +70,7 @@ |
||
| 70 | 70 | } elseif ($this->getVersion() === '1.0') { |
| 71 | 71 | $requestOptions[CURLOPT_HTTP_VERSION] = CURL_HTTP_VERSION_1_0; |
| 72 | 72 | } else { |
| 73 | - throw new RequestErrorException('Request version "' . $this->getVersion() . '" is not support by cURL', $this); |
|
| 73 | + throw new RequestErrorException('Request version "'.$this->getVersion().'" is not support by cURL', $this); |
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | $options = ArrayHelper::merge($this->defaultOptions, $this->getDb()->config, $requestOptions); |
@@ -235,6 +235,9 @@ discard block |
||
| 235 | 235 | return $result === false ? false : true; |
| 236 | 236 | } |
| 237 | 237 | |
| 238 | + /** |
|
| 239 | + * @param string $defaultScenario |
|
| 240 | + */ |
|
| 238 | 241 | public function performScenario($defaultScenario, $data, array $options = []) |
| 239 | 242 | { |
| 240 | 243 | $action = $this->getScenarioAction($defaultScenario); |
@@ -242,6 +245,9 @@ discard block |
||
| 242 | 245 | return static::perform($action, $data, $options); |
| 243 | 246 | } |
| 244 | 247 | |
| 248 | + /** |
|
| 249 | + * @param string $action |
|
| 250 | + */ |
|
| 245 | 251 | public static function perform($action, $data, array $options = []) |
| 246 | 252 | { |
| 247 | 253 | return static::getDb()->createCommand()->perform($action, static::from(), $data, $options); |