diff --git a/README.md b/README.md
index 867c265..e5b86fe 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,6 @@
# Vault
Vault administration panel provides ability to create custom "administration" controllers with pre-created view layout and navigation manager based on set of Materialize styles.
-> To be renamed from Albus to Vault.
-
Elements included
-----------------
* In-Vault uri tag
@@ -10,7 +8,7 @@ Elements included
* Tabs
```html
-
+
@@ -19,24 +17,24 @@ Elements included
-
+
-
+
-
+
There is an issue with something.
-
+
- extra user information link
+ extra user information link
@@ -50,17 +48,17 @@ Elements included
Following code will be compiled into Materialize based HTML:
-![Animation](https://raw.githubusercontent.com/spiral/guide/master/resources/albus.gif)
+![Animation](https://raw.githubusercontent.com/spiral/guide/master/resources/vault.gif)
# Installation
```
-composer require spiral/albus
-spiral register spiral/albus
+composer require spiral/vault
+spiral register spiral/vault
```
-Do not forget to mount `AlbusBootloader` (bootloader has to be initated after `SecutiryBootloader`).
+Do not forget to mount `VaultBootloader` (bootloader has to be initated after `SecutiryBootloader`).
-> You can tweak Albus behaviour (route, middlewares), create new navigation sections or register your own controllers via `app/config/modules/albus.php` configuration file.
+> You can tweak Vault behaviour (route, middlewares), create new navigation sections or register your own controllers via `app/config/modules/vault.php` configuration file.
-If you wish to play with Albus without configuring security, simply mount `Spiral\Albus\Bootloaders\InsecureAlbusBootloader` bootloader, attention this bootloader will open Albus access to guest accounts and has to be used for debugging purposes only.
+If you wish to play with Vault without configuring security, simply mount `Spiral\Vault\Bootloaders\InsecureVaultBootloader` bootloader, attention this bootloader will open Vault access to guest accounts and has to be used for debugging purposes only.
diff --git a/composer.json b/composer.json
index 8e25815..b1debaf 100644
--- a/composer.json
+++ b/composer.json
@@ -1,5 +1,5 @@
{
- "name": "spiral/albus",
+ "name": "spiral/vault",
"description": "Extendable, materialize design based, administration panel ",
"authors": [
{
diff --git a/gulpfile.js b/gulpfile.js
index 7dc5f63..98fd4fb 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -3,14 +3,14 @@ var gulp = require('gulp');
var sass = require('gulp-sass');
gulp.task('sass', function() {
- return gulp.src('./resources/styles/spiral/albus/albus.scss')
+ return gulp.src('./resources/styles/spiral/vault/vault.scss')
.pipe(sass())
- .pipe(gulp.dest('./resources/styles/spiral/albus/'));
+ .pipe(gulp.dest('./resources/styles/spiral/vault/'));
});
// Watch Files For Changes
gulp.task('watch', function() {
- gulp.watch('resources/styles/albus/*.scss', ['sass']);
+ gulp.watch('resources/styles/vault/*.scss', ['sass']);
});
// Default Task
diff --git a/resources/scripts/spiral/albus.js b/resources/scripts/spiral/vault.js
similarity index 100%
rename from resources/scripts/spiral/albus.js
rename to resources/scripts/spiral/vault.js
diff --git a/resources/styles/spiral/albus/components/_buttons.scss b/resources/styles/spiral/vault/components/_buttons.scss
similarity index 100%
rename from resources/styles/spiral/albus/components/_buttons.scss
rename to resources/styles/spiral/vault/components/_buttons.scss
diff --git a/resources/styles/spiral/albus/components/_cards.scss b/resources/styles/spiral/vault/components/_cards.scss
similarity index 100%
rename from resources/styles/spiral/albus/components/_cards.scss
rename to resources/styles/spiral/vault/components/_cards.scss
diff --git a/resources/styles/spiral/albus/components/_carousel.scss b/resources/styles/spiral/vault/components/_carousel.scss
similarity index 100%
rename from resources/styles/spiral/albus/components/_carousel.scss
rename to resources/styles/spiral/vault/components/_carousel.scss
diff --git a/resources/styles/spiral/albus/components/_chips.scss b/resources/styles/spiral/vault/components/_chips.scss
similarity index 100%
rename from resources/styles/spiral/albus/components/_chips.scss
rename to resources/styles/spiral/vault/components/_chips.scss
diff --git a/resources/styles/spiral/albus/components/_collapsible.scss b/resources/styles/spiral/vault/components/_collapsible.scss
similarity index 100%
rename from resources/styles/spiral/albus/components/_collapsible.scss
rename to resources/styles/spiral/vault/components/_collapsible.scss
diff --git a/resources/styles/spiral/albus/components/_color.scss b/resources/styles/spiral/vault/components/_color.scss
similarity index 100%
rename from resources/styles/spiral/albus/components/_color.scss
rename to resources/styles/spiral/vault/components/_color.scss
diff --git a/resources/styles/spiral/albus/components/_dropdown.scss b/resources/styles/spiral/vault/components/_dropdown.scss
similarity index 100%
rename from resources/styles/spiral/albus/components/_dropdown.scss
rename to resources/styles/spiral/vault/components/_dropdown.scss
diff --git a/resources/styles/spiral/albus/components/_form.scss b/resources/styles/spiral/vault/components/_form.scss
similarity index 100%
rename from resources/styles/spiral/albus/components/_form.scss
rename to resources/styles/spiral/vault/components/_form.scss
diff --git a/resources/styles/spiral/albus/components/_global.scss b/resources/styles/spiral/vault/components/_global.scss
similarity index 100%
rename from resources/styles/spiral/albus/components/_global.scss
rename to resources/styles/spiral/vault/components/_global.scss
diff --git a/resources/styles/spiral/albus/components/_grid.scss b/resources/styles/spiral/vault/components/_grid.scss
similarity index 100%
rename from resources/styles/spiral/albus/components/_grid.scss
rename to resources/styles/spiral/vault/components/_grid.scss
diff --git a/resources/styles/spiral/albus/components/_icons-material-design.scss b/resources/styles/spiral/vault/components/_icons-material-design.scss
similarity index 100%
rename from resources/styles/spiral/albus/components/_icons-material-design.scss
rename to resources/styles/spiral/vault/components/_icons-material-design.scss
diff --git a/resources/styles/spiral/albus/components/_materialbox.scss b/resources/styles/spiral/vault/components/_materialbox.scss
similarity index 100%
rename from resources/styles/spiral/albus/components/_materialbox.scss
rename to resources/styles/spiral/vault/components/_materialbox.scss
diff --git a/resources/styles/spiral/albus/components/_mixins.scss b/resources/styles/spiral/vault/components/_mixins.scss
similarity index 100%
rename from resources/styles/spiral/albus/components/_mixins.scss
rename to resources/styles/spiral/vault/components/_mixins.scss
diff --git a/resources/styles/spiral/albus/components/_modal.scss b/resources/styles/spiral/vault/components/_modal.scss
similarity index 100%
rename from resources/styles/spiral/albus/components/_modal.scss
rename to resources/styles/spiral/vault/components/_modal.scss
diff --git a/resources/styles/spiral/albus/components/_navbar.scss b/resources/styles/spiral/vault/components/_navbar.scss
similarity index 100%
rename from resources/styles/spiral/albus/components/_navbar.scss
rename to resources/styles/spiral/vault/components/_navbar.scss
diff --git a/resources/styles/spiral/albus/components/_normalize.scss b/resources/styles/spiral/vault/components/_normalize.scss
similarity index 100%
rename from resources/styles/spiral/albus/components/_normalize.scss
rename to resources/styles/spiral/vault/components/_normalize.scss
diff --git a/resources/styles/spiral/albus/components/_prefixer.css b/resources/styles/spiral/vault/components/_prefixer.css
similarity index 100%
rename from resources/styles/spiral/albus/components/_prefixer.css
rename to resources/styles/spiral/vault/components/_prefixer.css
diff --git a/resources/styles/spiral/albus/components/_prefixer.scss b/resources/styles/spiral/vault/components/_prefixer.scss
similarity index 100%
rename from resources/styles/spiral/albus/components/_prefixer.scss
rename to resources/styles/spiral/vault/components/_prefixer.scss
diff --git a/resources/styles/spiral/albus/components/_preloader.scss b/resources/styles/spiral/vault/components/_preloader.scss
similarity index 100%
rename from resources/styles/spiral/albus/components/_preloader.scss
rename to resources/styles/spiral/vault/components/_preloader.scss
diff --git a/resources/styles/spiral/albus/components/_roboto.scss b/resources/styles/spiral/vault/components/_roboto.scss
similarity index 100%
rename from resources/styles/spiral/albus/components/_roboto.scss
rename to resources/styles/spiral/vault/components/_roboto.scss
diff --git a/resources/styles/spiral/albus/components/_sideNav.scss b/resources/styles/spiral/vault/components/_sideNav.scss
similarity index 100%
rename from resources/styles/spiral/albus/components/_sideNav.scss
rename to resources/styles/spiral/vault/components/_sideNav.scss
diff --git a/resources/styles/spiral/albus/components/_slider.scss b/resources/styles/spiral/vault/components/_slider.scss
similarity index 100%
rename from resources/styles/spiral/albus/components/_slider.scss
rename to resources/styles/spiral/vault/components/_slider.scss
diff --git a/resources/styles/spiral/albus/components/_table_of_contents.scss b/resources/styles/spiral/vault/components/_table_of_contents.scss
similarity index 100%
rename from resources/styles/spiral/albus/components/_table_of_contents.scss
rename to resources/styles/spiral/vault/components/_table_of_contents.scss
diff --git a/resources/styles/spiral/albus/components/_tabs.scss b/resources/styles/spiral/vault/components/_tabs.scss
similarity index 100%
rename from resources/styles/spiral/albus/components/_tabs.scss
rename to resources/styles/spiral/vault/components/_tabs.scss
diff --git a/resources/styles/spiral/albus/components/_toast.scss b/resources/styles/spiral/vault/components/_toast.scss
similarity index 100%
rename from resources/styles/spiral/albus/components/_toast.scss
rename to resources/styles/spiral/vault/components/_toast.scss
diff --git a/resources/styles/spiral/albus/components/_tooltip.scss b/resources/styles/spiral/vault/components/_tooltip.scss
similarity index 100%
rename from resources/styles/spiral/albus/components/_tooltip.scss
rename to resources/styles/spiral/vault/components/_tooltip.scss
diff --git a/resources/styles/spiral/albus/components/_typography.scss b/resources/styles/spiral/vault/components/_typography.scss
similarity index 100%
rename from resources/styles/spiral/albus/components/_typography.scss
rename to resources/styles/spiral/vault/components/_typography.scss
diff --git a/resources/styles/spiral/albus/components/_variables.scss b/resources/styles/spiral/vault/components/_variables.scss
similarity index 100%
rename from resources/styles/spiral/albus/components/_variables.scss
rename to resources/styles/spiral/vault/components/_variables.scss
diff --git a/resources/styles/spiral/albus/components/_waves.scss b/resources/styles/spiral/vault/components/_waves.scss
similarity index 100%
rename from resources/styles/spiral/albus/components/_waves.scss
rename to resources/styles/spiral/vault/components/_waves.scss
diff --git a/resources/styles/spiral/albus/components/date_picker/_default.date.scss b/resources/styles/spiral/vault/components/date_picker/_default.date.scss
similarity index 100%
rename from resources/styles/spiral/albus/components/date_picker/_default.date.scss
rename to resources/styles/spiral/vault/components/date_picker/_default.date.scss
diff --git a/resources/styles/spiral/albus/components/date_picker/_default.scss b/resources/styles/spiral/vault/components/date_picker/_default.scss
similarity index 100%
rename from resources/styles/spiral/albus/components/date_picker/_default.scss
rename to resources/styles/spiral/vault/components/date_picker/_default.scss
diff --git a/resources/styles/spiral/albus/components/date_picker/_default.time.scss b/resources/styles/spiral/vault/components/date_picker/_default.time.scss
similarity index 100%
rename from resources/styles/spiral/albus/components/date_picker/_default.time.scss
rename to resources/styles/spiral/vault/components/date_picker/_default.time.scss
diff --git a/resources/styles/spiral/albus/icons.scss b/resources/styles/spiral/vault/icons.scss
similarity index 100%
rename from resources/styles/spiral/albus/icons.scss
rename to resources/styles/spiral/vault/icons.scss
diff --git a/resources/styles/spiral/albus/materialize.scss b/resources/styles/spiral/vault/materialize.scss
similarity index 100%
rename from resources/styles/spiral/albus/materialize.scss
rename to resources/styles/spiral/vault/materialize.scss
diff --git a/resources/styles/spiral/albus/sstyle.scss b/resources/styles/spiral/vault/sstyle.scss
similarity index 100%
rename from resources/styles/spiral/albus/sstyle.scss
rename to resources/styles/spiral/vault/sstyle.scss
diff --git a/resources/styles/spiral/albus/albus.css b/resources/styles/spiral/vault/vault.css
similarity index 100%
rename from resources/styles/spiral/albus/albus.css
rename to resources/styles/spiral/vault/vault.css
diff --git a/resources/styles/spiral/albus/albus.scss b/resources/styles/spiral/vault/vault.scss
similarity index 100%
rename from resources/styles/spiral/albus/albus.scss
rename to resources/styles/spiral/vault/vault.scss
diff --git a/source/Albus/Bootloaders/AlbusBootloader.php b/source/Albus/Bootloaders/AlbusBootloader.php
deleted file mode 100644
index 6b28fe9..0000000
--- a/source/Albus/Bootloaders/AlbusBootloader.php
+++ /dev/null
@@ -1,42 +0,0 @@
- Albus::class,
- Navigation::class => [Albus::class, 'navigation']
- ];
-
- /**
- * @param HttpDispatcher $http
- * @param Albus $albus
- */
- public function boot(HttpDispatcher $http, Albus $albus)
- {
- $http->addRoute($albus->route());
- }
-}
\ No newline at end of file
diff --git a/source/Albus/Exceptions/AlbusException.php b/source/Albus/Exceptions/AlbusException.php
deleted file mode 100644
index cbf0fed..0000000
--- a/source/Albus/Exceptions/AlbusException.php
+++ /dev/null
@@ -1,16 +0,0 @@
-hasRole(static::ROLE)) {
$permissions->addRole(static::ROLE);
diff --git a/source/Vault/Bootloaders/VaultBootloader.php b/source/Vault/Bootloaders/VaultBootloader.php
new file mode 100644
index 0000000..b77dd27
--- /dev/null
+++ b/source/Vault/Bootloaders/VaultBootloader.php
@@ -0,0 +1,42 @@
+ Vault::class,
+ Navigation::class => [Vault::class, 'navigation']
+ ];
+
+ /**
+ * @param HttpDispatcher $http
+ * @param Vault $vault
+ */
+ public function boot(HttpDispatcher $http, Vault $vault)
+ {
+ $http->addRoute($vault->route());
+ }
+}
\ No newline at end of file
diff --git a/source/Albus/Bootloaders/Virtual/SharedTrait.php b/source/Vault/Bootloaders/Virtual/SharedTrait.php
similarity index 93%
rename from source/Albus/Bootloaders/Virtual/SharedTrait.php
rename to source/Vault/Bootloaders/Virtual/SharedTrait.php
index 900e60a..464d574 100644
--- a/source/Albus/Bootloaders/Virtual/SharedTrait.php
+++ b/source/Vault/Bootloaders/Virtual/SharedTrait.php
@@ -17,10 +17,10 @@
*
* Here you list your own virtual bindings to help your IDE:
*
- * @see AlbusBootloader
+ * @see VaultBootloader
* @see SpiralBindings
*
- * @property-read \Spiral\Albus\Albus $albus See AlbusBindings
+ * @property-read \Spiral\Vault\Vault $vault See VaultBindings
* @property-read \Spiral\Views\ViewManager $views See SpiralBindings
*/
trait SharedTrait
diff --git a/source/Albus/Configs/AlbusConfig.php b/source/Vault/Configs/VaultConfig.php
similarity index 69%
rename from source/Albus/Configs/AlbusConfig.php
rename to source/Vault/Configs/VaultConfig.php
index 5f6d2ea..49f9f5e 100644
--- a/source/Albus/Configs/AlbusConfig.php
+++ b/source/Vault/Configs/VaultConfig.php
@@ -5,40 +5,40 @@
* @license MIT
* @author Anton Titov (Wolfy-J)
*/
-namespace Spiral\Albus\Configs;
+namespace Spiral\Vault\Configs;
-use Spiral\Albus\AlbusRoute;
+use Spiral\Vault\VaultRoute;
use Spiral\Core\InjectableConfig;
/**
- * Configuration for Albus administration panel.
+ * Configuration for Vault administration panel.
*/
-class AlbusConfig extends InjectableConfig
+class VaultConfig extends InjectableConfig
{
/**
* Configuration section.
*/
- const CONFIG = 'modules/albus';
+ const CONFIG = 'modules/vault';
/**
* Default permissions namespace.
*/
- const GUARD_NAMESPACE = 'albus';
+ const GUARD_NAMESPACE = 'vault';
/**
* @var array
*/
protected $config = [
- 'guardNamespace' => 'albus',
+ 'guardNamespace' => 'vault',
- //Default albus controller
+ //Default vault controller
'controllers' => [],
'navigation' => [],
- //Example: albus/users/addresses/1/remove/123
+ //Example: vault/users/addresses/1/remove/123
'route' => [
'middlewares' => [],
- 'pattern' => 'albus[/[/[/[/[/]]]]]',
+ 'pattern' => 'vault[/[/[/[/[/]]]]]',
'defaults' => [],
'matchHost' => false,
]
@@ -54,11 +54,11 @@ public function securityNamespace()
}
/**
- * List of allowed albus controllers in a form alias => class.
+ * List of allowed vault controllers in a form alias => class.
*
* Example:
* cms => Vendor\CMSController::class,
- * system => Albus\SystemController::class
+ * system => Vault\SystemController::class
*
* @return array
*/
@@ -68,7 +68,7 @@ public function controllers()
}
/**
- * Albus navigation structure including sections, permissions, titles and etc.
+ * Vault navigation structure including sections, permissions, titles and etc.
*
* @return array
*/
@@ -79,11 +79,11 @@ public function navigationSections()
/**
* @param string $name
- * @return AlbusRoute
+ * @return VaultRoute
*/
public function createRoute($name)
{
- $route = new AlbusRoute(
+ $route = new VaultRoute(
$name,
$this->config['route']['pattern'],
$this->config['route']['defaults']
diff --git a/source/Albus/Controllers/DashboardController.php b/source/Vault/Controllers/DashboardController.php
similarity index 77%
rename from source/Albus/Controllers/DashboardController.php
rename to source/Vault/Controllers/DashboardController.php
index a8e9f64..1d117ad 100644
--- a/source/Albus/Controllers/DashboardController.php
+++ b/source/Vault/Controllers/DashboardController.php
@@ -5,7 +5,7 @@
* @license MIT
* @author Anton Titov (Wolfy-J)
*/
-namespace Spiral\Albus\Controllers;
+namespace Spiral\Vault\Controllers;
use Spiral\Core\Controller;
@@ -19,6 +19,6 @@ class DashboardController extends Controller
*/
public function indexAction()
{
- return $this->views->render('albus:dashboard');
+ return $this->views->render('vault:dashboard');
}
}
diff --git a/source/Vault/Exceptions/VaultException.php b/source/Vault/Exceptions/VaultException.php
new file mode 100644
index 0000000..3b0c178
--- /dev/null
+++ b/source/Vault/Exceptions/VaultException.php
@@ -0,0 +1,16 @@
+httpConfig = $httpConfig;
@@ -89,7 +89,7 @@ public function route()
}
/**
- * Albus navigation instance.
+ * Vault navigation instance.
*/
public function navigation()
{
@@ -113,7 +113,7 @@ public function callAction($controller, $action = '', array $parameters = [])
{
if (!isset($this->config->controllers()[$controller])) {
throw new ControllerException(
- "Undefined albus controller '{$controller}'",
+ "Undefined vault controller '{$controller}'",
ControllerException::NOT_FOUND
);
}
@@ -122,7 +122,7 @@ public function callAction($controller, $action = '', array $parameters = [])
if (!$this->guard()->allows($permission, compact('action'))) {
throw new ControllerException(
- "Unreachable albus controller '{$controller}'",
+ "Unreachable vault controller '{$controller}'",
ControllerException::FORBIDDEN
);
}
@@ -131,7 +131,7 @@ public function callAction($controller, $action = '', array $parameters = [])
}
/**
- * Perform albus specific string translation.
+ * Perform vault specific string translation.
*
* @param string $string
* @param array $options
@@ -143,13 +143,13 @@ public function translate($string, array $options = [])
}
/**
- * Get albus specific uri.
+ * Get vault specific uri.
*
* @param string $target Target controller and action in a form of "controller::action" or
* "controller:action" or "controller".
* @param array|mixed $parameters
* @return UriInterface
- * @throws AlbusException
+ * @throws VaultException
*/
public function uri($target, $parameters = [])
{
@@ -162,14 +162,14 @@ public function uri($target, $parameters = [])
$controller = $target;
if (!empty($parameters)) {
- throw new AlbusException(
+ throw new VaultException(
"Unable to generate uri with empty controller action and not empty parameters."
);
}
}
if (!isset($this->config->controllers()[$controller])) {
- throw new AlbusException(
+ throw new VaultException(
"Unable to generate uri, undefined controller '{$controller}'."
);
}
@@ -181,11 +181,11 @@ public function uri($target, $parameters = [])
}
/**
- * @return AlbusRoute
+ * @return VaultRoute
*/
protected function createRoute()
{
- return $this->config->createRoute('albus')->setAlbus($this);
+ return $this->config->createRoute('vault')->setVault($this);
}
/**
diff --git a/source/Albus/AlbusRoute.php b/source/Vault/VaultRoute.php
similarity index 79%
rename from source/Albus/AlbusRoute.php
rename to source/Vault/VaultRoute.php
index 1252c17..75921da 100644
--- a/source/Albus/AlbusRoute.php
+++ b/source/Vault/VaultRoute.php
@@ -5,17 +5,17 @@
* @license MIT
* @author Anton Titov (Wolfy-J)
*/
-namespace Spiral\Albus;
+namespace Spiral\Vault;
use Spiral\Core\ContainerInterface;
use Spiral\Http\Routing\AbstractRoute;
-class AlbusRoute extends AbstractRoute
+class VaultRoute extends AbstractRoute
{
/**
- * @var Albus
+ * @var Vault
*/
- protected $albus = null;
+ protected $vault = null;
/**
* @param string $name
@@ -31,13 +31,13 @@ public function __construct($name, $pattern, array $defaults)
}
/**
- * @param Albus $albus
+ * @param Vault $vault
* @return $this
*/
- public function setAlbus(Albus $albus)
+ public function setVault(Vault $vault)
{
- $this->core = $albus;
- $this->albus = $albus;
+ $this->core = $vault;
+ $this->vault = $vault;
return $this;
}
diff --git a/source/AlbusModule.php b/source/VaultModule.php
similarity index 71%
rename from source/AlbusModule.php
rename to source/VaultModule.php
index 27dcd3b..527d210 100644
--- a/source/AlbusModule.php
+++ b/source/VaultModule.php
@@ -12,25 +12,25 @@
use Spiral\Modules\PublisherInterface;
use Spiral\Modules\RegistratorInterface;
-class AlbusModule implements ModuleInterface
+class VaultModule implements ModuleInterface
{
/**
* @param RegistratorInterface $registrator
*/
public function register(RegistratorInterface $registrator)
{
- $registrator->configure('views', 'namespaces', 'spiral/albus', [
- "'albus' => [",
- " directory('libraries') . 'spiral/albus/source/views/',",
- " /*{{namespaces.albus}}*/",
+ $registrator->configure('views', 'namespaces', 'spiral/vault', [
+ "'vault' => [",
+ " directory('libraries') . 'spiral/vault/source/views/',",
+ " /*{{namespaces.vault}}*/",
"]"
]);
- $registrator->configure('translator', 'domains', 'spiral/albus', [
- "'albus' => [",
- " 'spiral-albus-*',",
- " 'view-albus-*',",
- " /*{{domain.albus}}*/",
+ $registrator->configure('translator', 'domains', 'spiral/vault', [
+ "'vault' => [",
+ " 'spiral-vault-*',",
+ " 'view-vault-*',",
+ " /*{{domain.vault}}*/",
"]"
]);
}
@@ -42,8 +42,8 @@ public function register(RegistratorInterface $registrator)
public function publish(PublisherInterface $publisher, DirectoriesInterface $directories)
{
$publisher->publish(
- __DIR__ . '/config/albus.php',
- $directories->directory('config') . 'modules/albus.php',
+ __DIR__ . '/config/vault.php',
+ $directories->directory('config') . 'modules/vault.php',
PublisherInterface::FOLLOW
);
diff --git a/source/config/albus.php b/source/config/albus.php
index 118b8b8..02e9bf7 100644
--- a/source/config/albus.php
+++ b/source/config/albus.php
@@ -1,6 +1,6 @@
'albus',
+ 'guardNamespace' => 'vault',
/*
- * List of controller classes associated with their alias to be available for albus. No other
+ * List of controller classes associated with their alias to be available for vault. No other
* controllers can be called.
*
- * Albus checks access to controllers using high level permission "albus", make sure this
+ * Vault checks access to controllers using high level permission "vault", make sure this
* permissions is available for a needed user role.
*
- * @see AlbusCore
+ * @see VaultCore
*/
'controllers' => [
- 'dashboard' => \Spiral\Albus\Controllers\DashboardController::class,
+ 'dashboard' => \Spiral\Vault\Controllers\DashboardController::class,
/*{{controllers}}*/
],
/*
- * Structure of albus navigation including sections, section icons, links, link badges
+ * Structure of vault navigation including sections, section icons, links, link badges
* and permissions needed to view link. Link labels will be translated using i18n domain
- * "albus".
+ * "vault".
*/
'navigation' => [
/*
@@ -46,7 +46,7 @@
'title' => 'Dashboard',
//Permission needed to show this navigation section
- 'requires' => 'albus.dashboard'
+ 'requires' => 'vault.dashboard'
],
/*{{navigation.activity}}*/
]
@@ -56,11 +56,11 @@
],
/*
- * Configuration for AlbusRoute.
+ * Configuration for VaultRoute.
*/
'route' => [
/*
- * Set of middleware classes to be applied for AlbusRoute. Make sure to include AuthMiddleware
+ * Set of middleware classes to be applied for VaultRoute. Make sure to include AuthMiddleware
* here!
*/
'middlewares' => [
@@ -68,10 +68,10 @@
],
/*
- * Simple replace albus with desired keyword (for example "admin") to specify albus url
+ * Simple replace vault with desired keyword (for example "admin") to specify vault url
* namespace.
*/
- 'pattern' => 'albus[/[/[/[/[/]]]]]',
+ 'pattern' => 'vault[/[/[/[/[/]]]]]',
/*
* Default route values.
@@ -82,7 +82,7 @@
/*
* Set this value to true in cases when route based on sub domain patten, for example:
- * albus.website.com[/[/[/[/[/]]]]]
+ * vault.website.com[/[/[/[/[/]]]]]
*/
'matchHost' => false
]
diff --git a/source/views/bundle.dark.php b/source/views/bundle.dark.php
index 4281c19..b0de0fd 100644
--- a/source/views/bundle.dark.php
+++ b/source/views/bundle.dark.php
@@ -1,8 +1,8 @@
-
+
-
+
-
-
\ No newline at end of file
+
+
\ No newline at end of file
diff --git a/source/views/dashboard.dark.php b/source/views/dashboard.dark.php
index 9b5ace9..ccb9506 100644
--- a/source/views/dashboard.dark.php
+++ b/source/views/dashboard.dark.php
@@ -1,33 +1,33 @@
-
+
-
- This view file located in 'albus/views/dashboard.dark.php' and rendered by default
- 'DashboardController', simply alter albus config to connect your own controller and
+
+ This view file located in 'vault/views/dashboard.dark.php' and rendered by default
+ 'DashboardController', simply alter vault config to connect your own controller and
template.
-
+
-
- You can register additional albus controllers by altering configuration file located
- in 'app/config/modules/albus.php'.
-
+
+ You can register additional vault controllers by altering configuration file located
+ in 'app/config/modules/vault.php'.
+
-
+
Following technique can be used to create
- in-Albus
+ in-Vault
links:
- <albus:uri href="dashboard:index">in-Albus</albus:uri>
+ <vault:uri href="dashboard:index">in-Vault</vault:uri>
-
+
-
- You can make your controller work in albus layout by simply extending "albus:layout"
+
+ You can make your controller work in vault layout by simply extending "vault:layout"
parent in your view file. Following blocks and definitions available for you:
@@ -51,13 +51,13 @@
- You can also overwrite default albus layout by registering namespace directory
- (under "albus") and redefining "albus:layout" file with custom colors, logotypes
+ You can also overwrite default vault layout by registering namespace directory
+ (under "vault") and redefining "vault:layout" file with custom colors, logotypes
and resources.
Add class="wide-content" to parent layout to remove page width constrain.
-
+