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

Commit

Permalink
0.0.3 config injections
Browse files Browse the repository at this point in the history
  • Loading branch information
vvval committed Feb 16, 2016
1 parent da66a08 commit 06ef979
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions source/Snapshotter/Controllers/SnapshotsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
]);
Expand Down Expand Up @@ -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'));
}

/**
Expand Down
4 changes: 2 additions & 2 deletions source/SnapshotterModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -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}}*/",
"]"
Expand All @@ -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', [
Expand Down

0 comments on commit 06ef979

Please sign in to comment.