streams/Code/Daemon/Delxitems.php

24 lines
364 B
PHP
Raw Normal View History

<?php
2022-02-16 04:08:28 +00:00
namespace Code\Daemon;
/*
* Daemon to remove 'item' resources in the background from a removed connection
*/
2022-11-27 09:15:28 +00:00
class Delxitems implements DaemonInterface
2021-12-03 03:01:39 +00:00
{
2022-11-27 09:15:28 +00:00
public function run(int $argc, array $argv): void
2021-12-03 03:01:39 +00:00
{
2021-12-03 03:01:39 +00:00
cli_startup();
2021-12-03 03:01:39 +00:00
if ($argc != 3) {
return;
}
2021-12-03 03:01:39 +00:00
remove_abook_items($argv[1], $argv[2]);
}
}