Код: Выделить всё
public function send()
{
$sslHandler = new SslSecurityHandler();
$this->data = $sslHandler->encrypt($this->data);
return parent::send();
}
Код: Выделить всё
public function send()
{
$sslHandler = new SslSecurityHandler();
$this->data = $sslHandler->encrypt($this->data);
return parent::send();
}
Код: Выделить всё
$config = [
...
'as afterRequest' => app\models\Sll\SslSecurityHandler::class,
Код: Выделить всё
public function events(): array {
return [
\yii\base\Application::EVENT_AFTER_REQUEST => 'afterRequest',
];
}
/**
* @param $event
*/
public function afterRequest($event): void {
...
}