mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-11 17:44:44 +08:00
Added support for legacy and new publishing of visits in RabbitMQ
This commit is contained in:
40
module/Core/src/Options/RabbitMqOptions.php
Normal file
40
module/Core/src/Options/RabbitMqOptions.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Shlinkio\Shlink\Core\Options;
|
||||
|
||||
use Laminas\Stdlib\AbstractOptions;
|
||||
|
||||
class RabbitMqOptions extends AbstractOptions
|
||||
{
|
||||
protected $__strictMode__ = false; // phpcs:ignore
|
||||
|
||||
private bool $enabled = false;
|
||||
/** @deprecated */
|
||||
private bool $legacyVisitsPublishing = false;
|
||||
|
||||
public function isEnabled(): bool
|
||||
{
|
||||
return $this->enabled;
|
||||
}
|
||||
|
||||
protected function setEnabled(bool $enabled): self
|
||||
{
|
||||
$this->enabled = $enabled;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/** @deprecated */
|
||||
public function legacyVisitsPublishing(): bool
|
||||
{
|
||||
return $this->legacyVisitsPublishing;
|
||||
}
|
||||
|
||||
/** @deprecated */
|
||||
protected function setLegacyVisitsPublishing(bool $legacyVisitsPublishing): self
|
||||
{
|
||||
$this->legacyVisitsPublishing = $legacyVisitsPublishing;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user