chg: pkg: make a massive refactor to the backend and remove all unnecessary deps - and make small refactors for the frontend too #4
This commit is contained in:
28
src/Interfaces/RpcManagerInterface.php
Normal file
28
src/Interfaces/RpcManagerInterface.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php declare(strict_types=1);
|
||||
/**
|
||||
* This file is part of the SplendidBear Websites' projects.
|
||||
*
|
||||
* Copyright (c) 2019 @ www.splendidbear.org
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace App\Interfaces;
|
||||
|
||||
/**
|
||||
* Interface RpcManagerInterface
|
||||
*
|
||||
* @package App\Interfaces
|
||||
* @author Lang <https://www.splendidbear.org>
|
||||
* @category Interface
|
||||
* @license https://www.gnu.org/licenses/lgpl-3.0.en.html GNU Lesser General Public License
|
||||
* @link www.splendidbear.org
|
||||
* @since 2026. 04. 09.
|
||||
*/
|
||||
interface RpcManagerInterface
|
||||
{
|
||||
public function getConnectInformation($params): string;
|
||||
|
||||
public function saveGrid($data): bool;
|
||||
}
|
||||
33
src/Interfaces/TopicManagerInterface.php
Normal file
33
src/Interfaces/TopicManagerInterface.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php declare(strict_types=1);
|
||||
/**
|
||||
* This file is part of the SplendidBear Websites' projects.
|
||||
*
|
||||
* Copyright (c) 2019 @ www.splendidbear.org
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace App\Interfaces;
|
||||
|
||||
use Ratchet\ConnectionInterface;
|
||||
use Ratchet\Wamp\Topic;
|
||||
|
||||
/**
|
||||
* Interface TopicManagerInterface
|
||||
*
|
||||
* @package App\Interfaces
|
||||
* @author Lang <https://www.splendidbear.org>
|
||||
* @category Interface
|
||||
* @license https://www.gnu.org/licenses/lgpl-3.0.en.html GNU Lesser General Public License
|
||||
* @link www.splendidbear.org
|
||||
* @since 2026. 04. 09.
|
||||
*/
|
||||
interface TopicManagerInterface
|
||||
{
|
||||
public function subscribe(Topic $topic, ConnectionInterface $connection): void;
|
||||
|
||||
public function unSubscribe(Topic $topic, ConnectionInterface $connection): void;
|
||||
|
||||
public function publish(Topic $topic, ConnectionInterface $connection, $event): void;
|
||||
}
|
||||
28
src/Interfaces/WebsocketManagerInterface.php
Normal file
28
src/Interfaces/WebsocketManagerInterface.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php declare(strict_types=1);
|
||||
/**
|
||||
* This file is part of the SplendidBear Websites' projects.
|
||||
*
|
||||
* Copyright (c) 2019 @ www.splendidbear.org
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace App\Interfaces;
|
||||
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
|
||||
/**
|
||||
* Interface WebsocketManagerInterface
|
||||
*
|
||||
* @package App\Interfaces
|
||||
* @author Lang <https://www.splendidbear.org>
|
||||
* @category Interface
|
||||
* @license https://www.gnu.org/licenses/lgpl-3.0.en.html GNU Lesser General Public License
|
||||
* @link www.splendidbear.org
|
||||
* @since 2026. 04. 09.
|
||||
*/
|
||||
interface WebsocketManagerInterface
|
||||
{
|
||||
public function reConnect(EntityManagerInterface $entityManager): ?EntityManagerInterface;
|
||||
}
|
||||
Reference in New Issue
Block a user