From 06ef9791a84a56633517750aa50421a4d111038d Mon Sep 17 00:00:00 2001 From: Valentin Date: Tue, 16 Feb 2016 10:03:18 +0300 Subject: [PATCH] 0.0.3 config injections --- source/Snapshotter/Controllers/SnapshotsController.php | 6 +++--- source/SnapshotterModule.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source/Snapshotter/Controllers/SnapshotsController.php b/source/Snapshotter/Controllers/SnapshotsController.php index e7be33c..de13441 100644 --- a/source/Snapshotter/Controllers/SnapshotsController.php +++ b/source/Snapshotter/Controllers/SnapshotsController.php @@ -34,7 +34,7 @@ public function indexAction(AggregationSource $source, Statistics $statistics) { //todo filter by active (has snapshots), all - NOW filter is hardcoded //todo graph - return $this->views->render('vault:snapshots/list', [ + return $this->views->render('snapshotter:snapshots/list', [ 'source' => $source->findWithSnapshots()->orderBy('last_occurred_time', 'DESC'), 'lastSnapshot' => $source->findLast(), 'statistics' => $statistics @@ -63,7 +63,7 @@ public function editAction( $this->authorize('view', compact('aggregation')); - return $this->views->render('vault:snapshots/aggregation', [ + return $this->views->render('snapshotter:snapshots/aggregation', [ 'source' => $snapshotSource->findStored($aggregation)->orderBy('id', 'DESC'), 'aggregation' => $aggregation ]); @@ -109,7 +109,7 @@ public function snapshotAction($id, SnapshotSource $source) $this->authorize('view', compact('snapshot')); - return $this->views->render('vault:snapshots/snapshot', compact('snapshot')); + return $this->views->render('snapshotter:snapshots/snapshot', compact('snapshot')); } /** diff --git a/source/SnapshotterModule.php b/source/SnapshotterModule.php index dbb3bf9..cae486c 100644 --- a/source/SnapshotterModule.php +++ b/source/SnapshotterModule.php @@ -20,7 +20,7 @@ class SnapshotterModule implements ModuleInterface public function register(RegistratorInterface $registrator) { $registrator->configure('views', 'namespaces', 'spiral/snapshotter', [ - "'vault' => [", + "'snapshotter' => [", " directory('libraries') . 'spiral/snapshotter/source/views/',", " /*{{namespaces.snapshotter}}*/", "]" @@ -35,7 +35,7 @@ public function register(RegistratorInterface $registrator) ]); $registrator->configure('modules/vault', 'controllers', 'spiral/snapshotter', [ - "'snapshots' => '\\Spiral\\Snapshotter\\Controllers\\SnapshotsController::class'", + "'snapshots' => \\Spiral\\Snapshotter\\Controllers\\SnapshotsController::class", ]); $registrator->configure('modules/vault', 'navigation', 'spiral/snapshotter', [