File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<?php
22
3+ declare (strict_types=1 );
4+
35namespace LangGraphPlatform ;
46
57use LangGraphPlatform \Commands \LangGraphPlatformCommand ;
@@ -22,4 +24,22 @@ public function configurePackage(Package $package): void
2224 ->hasMigration ('create_langgraph_platform_php_table ' )
2325 ->hasCommand (LangGraphPlatformCommand::class);
2426 }
27+
28+ public function registeringPackage (): void
29+ {
30+ // Register the main LangGraph Platform client as a singleton
31+ $ this ->app ->singleton (LangGraphPlatform::class, function ($ app ) {
32+ return new LangGraphPlatform ();
33+ });
34+
35+ // Bind the client to the container using the interface if needed
36+ $ this ->app ->bind ('langgraph-platform ' , function ($ app ) {
37+ return $ app ->make (LangGraphPlatform::class);
38+ });
39+ }
40+
41+ public function packageBooted (): void
42+ {
43+ // Additional setup can be done here if needed
44+ }
2545}
You can’t perform that action at this time.
0 commit comments