Skip to content
This repository was archived by the owner on Jan 24, 2024. It is now read-only.

Commit b81b9fe

Browse files
committed
new routes
1 parent 869994c commit b81b9fe

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

source/Vault/Vault.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
namespace Spiral\Vault;
99

1010
use Psr\Http\Message\UriInterface;
11-
use Spiral\Vault\Configs\VaultConfig;
12-
use Spiral\Vault\Exceptions\VaultException;
1311
use Spiral\Core\Component;
1412
use Spiral\Core\Container\SingletonInterface;
1513
use Spiral\Core\ContainerInterface;
@@ -21,6 +19,8 @@
2119
use Spiral\Http\Routing\RouteInterface;
2220
use Spiral\Security\Traits\GuardedTrait;
2321
use Spiral\Translator\Traits\TranslatorTrait;
22+
use Spiral\Vault\Configs\VaultConfig;
23+
use Spiral\Vault\Exceptions\VaultException;
2424

2525
/**
2626
* Vault core aggregates
@@ -174,10 +174,7 @@ public function uri($target, $parameters = [])
174174
);
175175
}
176176

177-
$parameters['controller'] = $controller;
178-
$parameters['action'] = $action;
179-
180-
return $this->route->uri($parameters, $this->httpConfig->basePath());
177+
return $this->route->withDefaults(compact('controller', 'action'))->uri($parameters);
181178
}
182179

183180
/**

0 commit comments

Comments
 (0)