Skip to content

Commit

Permalink
feat(di): vhost and path can now be dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
bckp committed Mar 8, 2024
1 parent 9efd5f8 commit 58c82dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DI/Helpers/ConnectionsHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ public function getConfigSchema(): Schema
'password' => Expect::string('guest')->dynamic(),
'host' => Expect::string('127.0.0.1'),
'port' => Expect::int(5672),
'vhost' => Expect::string('/'),
'path' => Expect::string('/'),
'vhost' => Expect::string('/')->dynamic(),
'path' => Expect::string('/')->dynamic(),
'timeout' => Expect::anyOf(Expect::float(), Expect::int())->default(10)->castTo('float'),
'heartbeat' => Expect::anyOf(Expect::float(), Expect::int())->default(60)->castTo('float'),
'persistent' => Expect::bool(false),
Expand Down

0 comments on commit 58c82dc

Please sign in to comment.