Skip to content

Commit 58c82dc

Browse files
committed
feat(di): vhost and path can now be dynamic
1 parent 9efd5f8 commit 58c82dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DI/Helpers/ConnectionsHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ public function getConfigSchema(): Schema
2121
'password' => Expect::string('guest')->dynamic(),
2222
'host' => Expect::string('127.0.0.1'),
2323
'port' => Expect::int(5672),
24-
'vhost' => Expect::string('/'),
25-
'path' => Expect::string('/'),
24+
'vhost' => Expect::string('/')->dynamic(),
25+
'path' => Expect::string('/')->dynamic(),
2626
'timeout' => Expect::anyOf(Expect::float(), Expect::int())->default(10)->castTo('float'),
2727
'heartbeat' => Expect::anyOf(Expect::float(), Expect::int())->default(60)->castTo('float'),
2828
'persistent' => Expect::bool(false),

0 commit comments

Comments
 (0)