Skip to content

Commit

Permalink
Merge branch 'release/1.7.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmypuckett committed Apr 8, 2024
2 parents e265e0c + 92b9f77 commit 3be72c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.6.0
1.7.0
4 changes: 2 additions & 2 deletions src/VersionServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class VersionServiceProvider extends ServiceProvider
*/
public function boot()
{
if ($this->app['config']->get('version.route.enabled')) {
if ($this->app['config']->get('version.route.enabled', true)) {
$this->app['router']->group(
[
'namespace' => 'Spinen\Version\Http\Controllers',
Expand All @@ -37,7 +37,7 @@ function (Router $router) {
);
}

if ($this->app['config']->get('version.view.enabled')) {
if ($this->app['config']->get('version.view.enabled', true)) {
$this->app['view']->composer(
$this->app['config']->get('version.view.views', '*'),
function ($view) {
Expand Down

0 comments on commit 3be72c1

Please sign in to comment.