Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4202628

Browse files
authored
Runway blueprint namespace fix (#148)
1 parent 8ea4682 commit 4202628

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/RapidezStatamicServiceProvider.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
use Statamic\Facades\Site as SiteFacade;
3737
use Statamic\View\Cascade as StatamicCascade;
3838
use Rapidez\Statamic\StaticCaching\CustomInvalidator;
39+
use Statamic\Facades\Blueprint;
40+
use Statamic\Statamic;
3941

4042
class RapidezStatamicServiceProvider extends ServiceProvider
4143
{
@@ -175,6 +177,11 @@ public function bootRunway() : self
175177
)]);
176178
}
177179

180+
if (! Statamic::isCpRoute()) {
181+
Blueprint::addNamespace('collections.products', resource_path('blueprints/vendor/runway'));
182+
Blueprint::addNamespace('collections.categories', resource_path('blueprints/vendor/runway'));
183+
}
184+
178185
return $this;
179186
}
180187

0 commit comments

Comments
 (0)