2019-03-04 23:39:03 +00:00
|
|
|
<?php
|
|
|
|
|
2022-02-16 04:08:28 +00:00
|
|
|
namespace Code\Daemon;
|
2019-03-04 23:39:03 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* 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
|
|
|
{
|
2019-03-04 23:39:03 +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
|
|
|
{
|
2019-03-04 23:39:03 +00:00
|
|
|
|
2021-12-03 03:01:39 +00:00
|
|
|
cli_startup();
|
2019-03-04 23:39:03 +00:00
|
|
|
|
2021-12-03 03:01:39 +00:00
|
|
|
if ($argc != 3) {
|
|
|
|
return;
|
|
|
|
}
|
2019-03-04 23:39:03 +00:00
|
|
|
|
2021-12-03 03:01:39 +00:00
|
|
|
remove_abook_items($argv[1], $argv[2]);
|
|
|
|
}
|
2019-03-04 23:39:03 +00:00
|
|
|
}
|