Skip to content

Commit

Permalink
[ui-module][general] Move widgets data sources into bridges (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Aug 5, 2024
1 parent 3602a9b commit 8de439e
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 5 deletions.
10 changes: 8 additions & 2 deletions src/Queue/Consumers/ChannelAttribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,10 @@ public function consume(Queue\Messages\Message $message): bool
*
* @throws ApplicationExceptions\InvalidState
* @throws DevicesExceptions\InvalidState
* @throws DoctrineCrudExceptions\InvalidArgumentException
* @throws DBAL\Exception\UniqueConstraintViolationException
* @throws DoctrineCrudExceptions\EntityCreation
* @throws DoctrineCrudExceptions\InvalidArgument
* @throws DoctrineCrudExceptions\InvalidState
*/
private function setChannelProperties(
DevicesEntities\Channels\Channel $channel,
Expand Down Expand Up @@ -212,7 +215,10 @@ private function setChannelProperties(
*
* @throws ApplicationExceptions\InvalidState
* @throws DevicesExceptions\InvalidState
* @throws DoctrineCrudExceptions\InvalidArgumentException
* @throws DBAL\Exception\UniqueConstraintViolationException
* @throws DoctrineCrudExceptions\EntityCreation
* @throws DoctrineCrudExceptions\InvalidArgument
* @throws DoctrineCrudExceptions\InvalidState
*/
private function setChannelControls(
DevicesEntities\Channels\Channel $channel,
Expand Down
21 changes: 18 additions & 3 deletions src/Queue/Consumers/DeviceAttribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ public function __construct(
* @throws DBAL\Exception
* @throws DevicesExceptions\InvalidArgument
* @throws DevicesExceptions\InvalidState
* @throws DoctrineCrudExceptions\EntityCreation
* @throws DoctrineCrudExceptions\InvalidArgument
* @throws DoctrineCrudExceptions\InvalidState
* @throws MetadataExceptions\InvalidArgument
* @throws MetadataExceptions\InvalidState
* @throws ToolsExceptions\InvalidArgument
Expand Down Expand Up @@ -186,7 +189,9 @@ public function consume(Queue\Messages\Message $message): bool
* @throws DBAL\Exception
* @throws DevicesExceptions\InvalidArgument
* @throws DevicesExceptions\InvalidState
* @throws DoctrineCrudExceptions\InvalidArgumentException
* @throws DoctrineCrudExceptions\EntityCreation
* @throws DoctrineCrudExceptions\InvalidArgument
* @throws DoctrineCrudExceptions\InvalidState
* @throws Exceptions\InvalidArgument
* @throws MetadataExceptions\InvalidArgument
* @throws MetadataExceptions\InvalidState
Expand Down Expand Up @@ -271,6 +276,10 @@ private function setDeviceProperties(
* @param Utils\ArrayHash<string> $extensions
*
* @throws ApplicationExceptions\InvalidState
* @throws DBAL\Exception\UniqueConstraintViolationException
* @throws DoctrineCrudExceptions\EntityCreation
* @throws DoctrineCrudExceptions\InvalidArgument
* @throws DoctrineCrudExceptions\InvalidState
* @throws Exceptions\InvalidArgument
*/
private function setDeviceExtensions(
Expand Down Expand Up @@ -327,7 +336,10 @@ private function setDeviceExtensions(
*
* @throws ApplicationExceptions\InvalidState
* @throws DevicesExceptions\InvalidState
* @throws DoctrineCrudExceptions\InvalidArgumentException
* @throws DBAL\Exception\UniqueConstraintViolationException
* @throws DoctrineCrudExceptions\EntityCreation
* @throws DoctrineCrudExceptions\InvalidArgument
* @throws DoctrineCrudExceptions\InvalidState
*/
private function setDeviceControls(
DevicesEntities\Devices\Device $device,
Expand Down Expand Up @@ -365,7 +377,10 @@ private function setDeviceControls(
*
* @throws ApplicationExceptions\InvalidState
* @throws DevicesExceptions\InvalidState
* @throws DoctrineCrudExceptions\InvalidArgumentException
* @throws DBAL\Exception\UniqueConstraintViolationException
* @throws DoctrineCrudExceptions\EntityCreation
* @throws DoctrineCrudExceptions\InvalidArgument
* @throws DoctrineCrudExceptions\InvalidState
*/
private function setDeviceChannels(
DevicesEntities\Devices\Device $device,
Expand Down
6 changes: 6 additions & 0 deletions src/Subscribers/Controls.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@
namespace FastyBird\Connector\FbMqtt\Subscribers;

use Doctrine\Common;
use Doctrine\DBAL;
use Doctrine\ORM;
use Doctrine\Persistence;
use FastyBird\Connector\FbMqtt\Entities;
use FastyBird\Library\Application\Exceptions as ApplicationExceptions;
use FastyBird\Module\Devices\Models as DevicesModels;
use FastyBird\Module\Devices\Queries as DevicesQueries;
use FastyBird\Module\Devices\Types as DevicesTypes;
use IPub\DoctrineCrud\Exceptions as DoctrineCrudExceptions;
use Nette;
use Nette\Utils;

Expand Down Expand Up @@ -57,6 +59,10 @@ public function getSubscribedEvents(): array
* @param Persistence\Event\LifecycleEventArgs<ORM\EntityManagerInterface> $eventArgs
*
* @throws ApplicationExceptions\InvalidState
* @throws DBAL\Exception\UniqueConstraintViolationException
* @throws DoctrineCrudExceptions\EntityCreation
* @throws DoctrineCrudExceptions\InvalidArgument
* @throws DoctrineCrudExceptions\InvalidState
*/
public function postPersist(Persistence\Event\LifecycleEventArgs $eventArgs): void
{
Expand Down

0 comments on commit 8de439e

Please sign in to comment.