@@ -67,6 +67,7 @@ public function boot(): void
6767 public function register (): void
6868 {
6969 $ this ->registerConfigs ();
70+ $ this ->registerCraftileConfig ();
7071 $ this ->registerSingletons ();
7172 $ this ->registerCustomUrlGenerator ();
7273 }
@@ -79,22 +80,6 @@ public function register(): void
7980
8081 protected function bootCraftile (): void
8182 {
82- config ([
83- 'craftile.directives ' => [
84- 'craftileBlock ' => 'visualBlock ' ,
85- 'craftileRegion ' => 'visualRegion ' ,
86- 'craftileContent ' => 'visualContent ' ,
87- 'craftileLayoutContent ' => 'visualLayoutContent ' ,
88- ],
89-
90- 'craftile.components.namespace ' => 'visual ' ,
91-
92- 'craftile.block_data_class ' => \BagistoPlus \Visual \Data \BlockData::class,
93- 'craftile.block_schema_class ' => \BagistoPlus \Visual \Data \BlockSchema::class,
94-
95- 'craftile.php_template_extensions ' => ['visual.php ' ],
96- ]);
97-
9883 Craftile::resolveRegionViewUsing (function ($ name ) {
9984 return "shop::regions. $ name " ;
10085 });
@@ -252,6 +237,25 @@ protected function registerConfigs(): void
252237 $ this ->mergeConfigFrom (__DIR__ .'/../../config/svg-iconmap.php ' , 'bagisto_visual_iconmap ' );
253238 }
254239
240+ protected function registerCraftileConfig (): void
241+ {
242+ config ([
243+ 'craftile.directives ' => [
244+ 'craftileBlock ' => 'visualBlock ' ,
245+ 'craftileRegion ' => 'visualRegion ' ,
246+ 'craftileContent ' => 'visualContent ' ,
247+ 'craftileLayoutContent ' => 'visualLayoutContent ' ,
248+ ],
249+
250+ 'craftile.components.namespace ' => 'visual ' ,
251+
252+ 'craftile.block_data_class ' => \BagistoPlus \Visual \Data \BlockData::class,
253+ 'craftile.block_schema_class ' => \BagistoPlus \Visual \Data \BlockSchema::class,
254+
255+ 'craftile.php_template_extensions ' => ['visual.php ' ],
256+ ]);
257+ }
258+
255259 protected function registerSingletons (): void
256260 {
257261 $ this ->app ->singleton (ThemeSettingsLoader::class, function (Application $ app ) {
0 commit comments