Skip to content

Commit

Permalink
WS exchange to devices bridge + bootstrap cleaning (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Nov 4, 2022
1 parent c3ac412 commit 3b63117
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
5 changes: 3 additions & 2 deletions src/DI/WebServerExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

namespace FastyBird\Plugin\WebServer\DI;

use FastyBird\Library\Bootstrap\Boot as BootstrapBoot;
use FastyBird\Plugin\WebServer\Application;
use FastyBird\Plugin\WebServer\Commands;
use FastyBird\Plugin\WebServer\Exceptions;
Expand Down Expand Up @@ -56,13 +57,13 @@ public function __construct(private readonly bool $cliMode = false)
}

public static function register(
Nette\Configurator $config,
Nette\Configurator|BootstrapBoot\Configurator $config,
bool $cliMode = false,
string $extensionName = self::NAME,
): void
{
$config->onCompile[] = static function (
Nette\Configurator $config,
Nette\Configurator|BootstrapBoot\Configurator $config,
DI\Compiler $compiler,
) use (
$extensionName,
Expand Down
3 changes: 2 additions & 1 deletion tests/cases/unit/BaseTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace FastyBird\Plugin\WebServer\Tests\Cases\Unit;

use FastyBird\Library\Bootstrap\Boot as BootstrapBoot;
use FastyBird\Plugin\WebServer;
use Nette;
use Nette\DI;
Expand Down Expand Up @@ -29,7 +30,7 @@ protected function createContainer(string|null $additionalConfig = null): Nette\
$rootDir = __DIR__ . '/../..';
$vendorDir = defined('FB_VENDOR_DIR') ? constant('FB_VENDOR_DIR') : $rootDir . '/../vendor';

$config = new Nette\Configurator();
$config = new BootstrapBoot\Configurator();
$config->setTempDirectory(FB_TEMP_DIR);

$config->addParameters(['container' => ['class' => 'SystemContainer_' . md5((string) time())]]);
Expand Down
3 changes: 0 additions & 3 deletions tools/phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,4 @@
</property>
</properties>
</rule>

<!--Exclude folders -->
<exclude-pattern>/tests/stubs/*</exclude-pattern>
</ruleset>

0 comments on commit 3b63117

Please sign in to comment.