File tree Expand file tree Collapse file tree 3 files changed +17
-1
lines changed
Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 2424 },
2525 "require" : {
2626 "php" : " ^8.0" ,
27- "statamic/cms" : " ^4.16 "
27+ "statamic/cms" : " ^4.21 "
2828 },
2929 "require-dev" : {
3030 "doctrine/dbal" : " ^3.3" ,
Original file line number Diff line number Diff line change 22
33namespace Statamic \Eloquent \Structures ;
44
5+ use Statamic \Contracts \Structures \CollectionTree as CollectionTreeContract ;
56use Statamic \Contracts \Structures \Tree as TreeContract ;
67use Statamic \Facades \Blink ;
78use Statamic \Stache \Repositories \CollectionTreeRepository as StacheRepository ;
@@ -29,4 +30,11 @@ public function save($entry)
2930
3031 $ entry ->model ($ model ->fresh ());
3132 }
33+
34+ public static function bindings ()
35+ {
36+ return [
37+ CollectionTreeContract::class => CollectionTree::class,
38+ ];
39+ }
3240}
Original file line number Diff line number Diff line change 22
33namespace Statamic \Eloquent \Structures ;
44
5+ use Statamic \Contracts \Structures \NavTree as NavTreeContract ;
56use Statamic \Contracts \Structures \Tree as TreeContract ;
67use Statamic \Facades \Blink ;
78use Statamic \Stache \Repositories \NavTreeRepository as StacheRepository ;
@@ -44,4 +45,11 @@ public function delete($entry)
4445
4546 $ entry ->model ()->delete ();
4647 }
48+
49+ public static function bindings ()
50+ {
51+ return [
52+ NavTreeContract::class => NavTree::class,
53+ ];
54+ }
4755}
You can’t perform that action at this time.
0 commit comments