File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -102,8 +102,6 @@ public function registeringPackage(): void
102102
103103 public function packageRegistered (): void
104104 {
105- $ this ->registerPolymorphism ();
106-
107105 $ this ->app ->singleton (BaseManifests \ModelManifestInterface::class, fn () => $ this ->app ->make (BaseManifests \ModelManifest::class));
108106 $ this ->app ->singleton (BaseManifests \ContentStatusManifestInterface::class, fn () => $ this ->app ->make (BaseManifests \ContentStatusManifest::class));
109107 $ this ->app ->singleton (BaseManifests \PermissionManifestInterface::class, fn () => $ this ->app ->make (BaseManifests \PermissionManifest::class));
@@ -299,18 +297,6 @@ protected function getMigrations(): array
299297 ];
300298 }
301299
302- /**
303- * Register Polymorphic Types
304- */
305- protected function registerPolymorphism (): void
306- {
307- $ map = Arr::pluck (InspireCmsConfig::get ('models ' ), 'fqcn ' , 'polymorphic_type ' );
308-
309- if (! empty ($ map )) {
310- Relation::enforceMorphMap ($ map );
311- }
312- }
313-
314300 protected function registerModels (): void
315301 {
316302 Facades \ModelManifest::register ();
You can’t perform that action at this time.
0 commit comments