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

Commit

Permalink
new routes
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy-j committed Feb 2, 2016
1 parent 869994c commit b81b9fe
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions source/Vault/Vault.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
namespace Spiral\Vault;

use Psr\Http\Message\UriInterface;
use Spiral\Vault\Configs\VaultConfig;
use Spiral\Vault\Exceptions\VaultException;
use Spiral\Core\Component;
use Spiral\Core\Container\SingletonInterface;
use Spiral\Core\ContainerInterface;
Expand All @@ -21,6 +19,8 @@
use Spiral\Http\Routing\RouteInterface;
use Spiral\Security\Traits\GuardedTrait;
use Spiral\Translator\Traits\TranslatorTrait;
use Spiral\Vault\Configs\VaultConfig;
use Spiral\Vault\Exceptions\VaultException;

/**
* Vault core aggregates
Expand Down Expand Up @@ -174,10 +174,7 @@ public function uri($target, $parameters = [])
);
}

$parameters['controller'] = $controller;
$parameters['action'] = $action;

return $this->route->uri($parameters, $this->httpConfig->basePath());
return $this->route->withDefaults(compact('controller', 'action'))->uri($parameters);
}

/**
Expand Down

0 comments on commit b81b9fe

Please sign in to comment.