| 1 | <?php |
||
| 15 | class Socket extends External { |
||
| 16 | |||
| 17 | /** @var string */ |
||
| 18 | private $socket; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Socket constructor. |
||
| 22 | * |
||
| 23 | * @param AppConfig $config |
||
| 24 | * @param ILogger $logger |
||
| 25 | * @throws InitException |
||
| 26 | */ |
||
| 27 | public function __construct(AppConfig $config, ILogger $logger) { |
||
| 28 | parent::__construct($config, $logger); |
||
| 29 | $this->socket = $this->appConfig->getAvSocket(); |
||
| 30 | if ($this->socket === '') { |
||
| 31 | throw new InitException( |
||
| 32 | 'Socket mode requires a path to the unix socket but it is empty.' |
||
| 33 | ); |
||
| 34 | } |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @throws InitException |
||
| 39 | */ |
||
| 40 | public function initScanner(){ |
||
| 65 | } |
||
| 66 |