From e709ed91b74a2b1882ed935a82aa23df9cf03e49 Mon Sep 17 00:00:00 2001 From: osaajani Date: Sun, 8 Dec 2019 02:33:53 +0100 Subject: [PATCH] first console using daemon --- controllers/internals/Console.php | 24 +++++++++++++++++ daemons/AbstractDaemon.php | 2 ++ daemons/Server.php | 43 +++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100755 controllers/internals/Console.php create mode 100644 daemons/Server.php diff --git a/controllers/internals/Console.php b/controllers/internals/Console.php new file mode 100755 index 0000000..1e5e99b --- /dev/null +++ b/controllers/internals/Console.php @@ -0,0 +1,24 @@ + + * + * This source file is subject to the GPL-3.0 license that is bundled + * with this source code in the file LICENSE. + */ + +namespace controllers\internals; + + /** + * Class to call the console scripts + */ + class Console extends \descartes\InternalController + { + public function server () + { + $server = new \daemons\Server(); + } + + } diff --git a/daemons/AbstractDaemon.php b/daemons/AbstractDaemon.php index 1148b78..b4eccc4 100644 --- a/daemons/AbstractDaemon.php +++ b/daemons/AbstractDaemon.php @@ -1,5 +1,7 @@