diff --git a/composer.json b/composer.json index 757b204..01ba9a6 100644 --- a/composer.json +++ b/composer.json @@ -38,12 +38,12 @@ "require": { "php": ">=8.2.0", "cweagans/composer-patches": "^1.7", - "fastybird/application-library": "dev-main", + "fastybird/application": "dev-main", "fastybird/metadata-library": "dev-main", "fig/http-message-util": "^1.1", "ipub/slim-router": "^0.2", - "nette/bootstrap": "^3.1", - "nette/di": "^3.0", + "nette/bootstrap": "^3.2", + "nette/di": "^3.2", "nette/utils": "^4.0", "psr/event-dispatcher": "^1.0", "psr/http-message": "^1.0", diff --git a/src/Commands/HttpServer.php b/src/Commands/HttpServer.php index 1796b9f..9c1da08 100644 --- a/src/Commands/HttpServer.php +++ b/src/Commands/HttpServer.php @@ -15,7 +15,7 @@ namespace FastyBird\Plugin\WebServer\Commands; -use FastyBird\Library\Application\Helpers as ApplicationHelpers; +use FastyBird\Core\Tools\Helpers as ToolsHelpers; use FastyBird\Library\Metadata\Types as MetadataTypes; use FastyBird\Plugin\WebServer\Events; use FastyBird\Plugin\WebServer\Exceptions; @@ -124,7 +124,7 @@ protected function execute( [ 'source' => MetadataTypes\Sources\Plugin::WEB_SERVER->value, 'type' => 'server-command', - 'exception' => ApplicationHelpers\Logger::buildException($ex), + 'exception' => ToolsHelpers\Logger::buildException($ex), 'cmd' => $this->getName(), ], ); diff --git a/src/DI/WebServerExtension.php b/src/DI/WebServerExtension.php index 25d218e..24703d0 100644 --- a/src/DI/WebServerExtension.php +++ b/src/DI/WebServerExtension.php @@ -15,7 +15,7 @@ namespace FastyBird\Plugin\WebServer\DI; -use FastyBird\Library\Application\Boot as ApplicationBoot; +use FastyBird\Core\Application\Boot as ApplicationBoot; use FastyBird\Plugin\WebServer\Application; use FastyBird\Plugin\WebServer\Commands; use FastyBird\Plugin\WebServer\Http; diff --git a/src/Server/Factory.php b/src/Server/Factory.php index e5b9dfa..b4b6a0b 100644 --- a/src/Server/Factory.php +++ b/src/Server/Factory.php @@ -15,7 +15,7 @@ namespace FastyBird\Plugin\WebServer\Server; -use FastyBird\Library\Application\Helpers as ApplicationHelpers; +use FastyBird\Core\Tools\Helpers as ToolsHelpers; use FastyBird\Library\Metadata\Types as MetadataTypes; use FastyBird\Plugin\WebServer\Middleware; use Psr\Log; @@ -63,7 +63,7 @@ public function create(Socket\ServerInterface $server): void [ 'source' => MetadataTypes\Sources\Plugin::WEB_SERVER->value, 'type' => 'factory', - 'exception' => ApplicationHelpers\Logger::buildException($ex), + 'exception' => ToolsHelpers\Logger::buildException($ex), ], ); diff --git a/src/Subscribers/Server.php b/src/Subscribers/Server.php index cf86169..38f0af1 100644 --- a/src/Subscribers/Server.php +++ b/src/Subscribers/Server.php @@ -16,8 +16,8 @@ namespace FastyBird\Plugin\WebServer\Subscribers; use Doctrine\DBAL; -use FastyBird\Library\Application\Exceptions as ApplicationExceptions; -use FastyBird\Library\Application\Helpers as ApplicationHelpers; +use FastyBird\Core\Tools\Exceptions as ToolsExceptions; +use FastyBird\Core\Tools\Helpers as ToolsHelpers; use FastyBird\Plugin\WebServer\Events; use FastyBird\Plugin\WebServer\Exceptions; use Symfony\Component\EventDispatcher; @@ -33,7 +33,7 @@ readonly class Server implements EventDispatcher\EventSubscriberInterface { - public function __construct(private ApplicationHelpers\Database $database) + public function __construct(private ToolsHelpers\Database $database) { } @@ -47,9 +47,9 @@ public static function getSubscribedEvents(): array } /** - * @throws ApplicationExceptions\InvalidState * @throws DBAL\Exception * @throws Exceptions\InvalidState + * @throws ToolsExceptions\InvalidState */ public function check(): void { @@ -66,8 +66,8 @@ public function check(): void } /** - * @throws ApplicationExceptions\InvalidState * @throws DBAL\Exception + * @throws ToolsExceptions\InvalidState */ public function request(): void { @@ -78,7 +78,7 @@ public function request(): void } /** - * @throws ApplicationExceptions\InvalidState + * @throws ToolsExceptions\InvalidState */ public function response(): void { diff --git a/tests/cases/unit/BaseTestCase.php b/tests/cases/unit/BaseTestCase.php index e961bfe..6e9a36f 100644 --- a/tests/cases/unit/BaseTestCase.php +++ b/tests/cases/unit/BaseTestCase.php @@ -3,8 +3,8 @@ namespace FastyBird\Plugin\WebServer\Tests\Cases\Unit; use Error; -use FastyBird\Library\Application\Boot as ApplicationBoot; -use FastyBird\Library\Application\Exceptions as ApplicationExceptions; +use FastyBird\Core\Application\Boot as ApplicationBoot; +use FastyBird\Core\Application\Exceptions as ApplicationExceptions; use FastyBird\Plugin\WebServer; use Nette; use Nette\DI; diff --git a/tests/common.neon b/tests/common.neon index 1b59729..bdb8660 100644 --- a/tests/common.neon +++ b/tests/common.neon @@ -12,3 +12,10 @@ php: date.timezone: Europe/Prague + +extensions: + fbTools : FastyBird\Core\Tools\DI\ToolsExtension + +fbApplication: + documents: + mapping: []