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

Commit

Permalink
Update Vault.php
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy-j authored Sep 28, 2016
1 parent ee66f7f commit f12285d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions source/Vault/Vault.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ class Vault extends Component implements CoreInterface, SingletonInterface
* @var HttpConfig
*/
private $httpConfig = null;

/**
* @var string
*/
private $routeName = 'vault';

/**
* @var VaultConfig
Expand Down Expand Up @@ -67,11 +72,13 @@ class Vault extends Component implements CoreInterface, SingletonInterface
* @param HttpConfig $httpConfig
* @param VaultConfig $config
* @param ContainerInterface $container
* @param string $routeName
*/
public function __construct(
HttpConfig $httpConfig,
VaultConfig $config,
ContainerInterface $container
ContainerInterface $container,
$routeName = 'vault'
) {
$this->httpConfig = $httpConfig;
$this->config = $config;
Expand Down Expand Up @@ -180,7 +187,7 @@ public function uri($target, $parameters = [])
*/
protected function createRoute()
{
return $this->config->createRoute('vault')->withCore($this);
return $this->config->createRoute($this->routeName)->withCore($this);
}

/**
Expand Down

0 comments on commit f12285d

Please sign in to comment.