Skip to content

Commit b1ff75f

Browse files
committed
Ensure default config is loaded
1 parent d4c5ae8 commit b1ff75f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "trendyminds/nerf",
33
"description": "Allows certain admin-only permissions to be reduced in production environments",
4-
"version": "1.0.1",
4+
"version": "1.0.2",
55
"license": "MIT",
66
"autoload": {
77
"psr-4": {

src/ServiceProvider.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ class ServiceProvider extends AddonServiceProvider
1010
{
1111
public function bootAddon()
1212
{
13+
$this->mergeConfigFrom(__DIR__.'/../config/statamic/nerf.php', 'statamic.nerf');
14+
1315
$this->publishes([
1416
__DIR__.'/../config/statamic/nerf.php' => config_path('statamic/nerf.php'),
1517
], 'nerf-config');

0 commit comments

Comments
 (0)