33
44use DreamFactory \Core \Enums \ServiceTypeGroups ;
55use DreamFactory \Core \Models \SystemTableModelMapper ;
6+ use DreamFactory \Core \Enums \LicenseLevel ;
67use DreamFactory \Core \Script \Models \Python3Config ;
78use DreamFactory \Core \Script \Services \Python3 ;
89use DreamFactory \Core \System \Components \SystemResourceManager ;
@@ -34,60 +35,65 @@ public function register()
3435 $ df ->addType (
3536 new ServiceType (
3637 [
37- 'name ' => 'nodejs ' ,
38- 'label ' => 'Node.js ' ,
39- 'description ' => 'Service that allows client-callable scripts utilizing the system scripting. ' ,
40- 'group ' => ServiceTypeGroups::SCRIPT ,
41- 'config_handler ' => NodejsConfig::class,
42- 'factory ' => function ($ config ) {
38+ 'name ' => 'nodejs ' ,
39+ 'label ' => 'Node.js ' ,
40+ 'description ' => 'Service that allows client-callable scripts utilizing the system scripting. ' ,
41+ 'group ' => ServiceTypeGroups::SCRIPT ,
42+ 'subscription_required ' => LicenseLevel::SILVER ,
43+ 'config_handler ' => NodejsConfig::class,
44+ 'factory ' => function ($ config ) {
4345 return new Nodejs ($ config );
4446 },
4547 ]));
4648 $ df ->addType (
4749 new ServiceType (
4850 [
49- 'name ' => 'php ' ,
50- 'label ' => 'PHP ' ,
51- 'description ' => 'Service that allows client-callable scripts utilizing the system scripting. ' ,
52- 'group ' => ServiceTypeGroups::SCRIPT ,
53- 'config_handler ' => PhpConfig::class,
54- 'factory ' => function ($ config ) {
51+ 'name ' => 'php ' ,
52+ 'label ' => 'PHP ' ,
53+ 'description ' => 'Service that allows client-callable scripts utilizing the system scripting. ' ,
54+ 'group ' => ServiceTypeGroups::SCRIPT ,
55+ 'subscription_required ' => LicenseLevel::SILVER ,
56+ 'config_handler ' => PhpConfig::class,
57+ 'factory ' => function ($ config ) {
5558 return new Php ($ config );
5659 },
5760 ]));
5861 $ df ->addType (
5962 new ServiceType (
6063 [
61- 'name ' => 'python ' ,
62- 'label ' => 'Python ' ,
63- 'description ' => 'Service that allows client-callable scripts utilizing the system scripting. ' ,
64- 'group ' => ServiceTypeGroups::SCRIPT ,
65- 'config_handler ' => PythonConfig::class,
66- 'factory ' => function ($ config ) {
64+ 'name ' => 'python ' ,
65+ 'label ' => 'Python ' ,
66+ 'description ' => 'Service that allows client-callable scripts utilizing the system scripting. ' ,
67+ 'group ' => ServiceTypeGroups::SCRIPT ,
68+ 'subscription_required ' => LicenseLevel::SILVER ,
69+ 'config_handler ' => PythonConfig::class,
70+ 'factory ' => function ($ config ) {
6771 return new Python ($ config );
6872 },
6973 ]));
7074 $ df ->addType (
7175 new ServiceType (
7276 [
73- 'name ' => 'python3 ' ,
74- 'label ' => 'Python3 ' ,
75- 'description ' => 'Service that allows client-callable scripts utilizing the system scripting. ' ,
76- 'group ' => ServiceTypeGroups::SCRIPT ,
77- 'config_handler ' => Python3Config::class,
78- 'factory ' => function ($ config ) {
77+ 'name ' => 'python3 ' ,
78+ 'label ' => 'Python3 ' ,
79+ 'description ' => 'Service that allows client-callable scripts utilizing the system scripting. ' ,
80+ 'group ' => ServiceTypeGroups::SCRIPT ,
81+ 'subscription_required ' => LicenseLevel::SILVER ,
82+ 'config_handler ' => Python3Config::class,
83+ 'factory ' => function ($ config ) {
7984 return new Python3 ($ config );
8085 },
8186 ]));
8287 $ df ->addType (
8388 new ServiceType (
8489 [
85- 'name ' => 'v8js ' ,
86- 'label ' => 'V8js ' ,
87- 'description ' => 'Service that allows client-callable scripts utilizing the system scripting. ' ,
88- 'group ' => ServiceTypeGroups::SCRIPT ,
89- 'config_handler ' => V8jsConfig::class,
90- 'factory ' => function ($ config ) {
90+ 'name ' => 'v8js ' ,
91+ 'label ' => 'V8js ' ,
92+ 'description ' => 'Service that allows client-callable scripts utilizing the system scripting. ' ,
93+ 'group ' => ServiceTypeGroups::SCRIPT ,
94+ 'subscription_required ' => LicenseLevel::SILVER ,
95+ 'config_handler ' => V8jsConfig::class,
96+ 'factory ' => function ($ config ) {
9197 return new V8js ($ config );
9298 },
9399 ]));
@@ -97,19 +103,21 @@ public function register()
97103 $ this ->app ->resolving ('df.system.resource ' , function (SystemResourceManager $ df ) {
98104 $ df ->addType (
99105 new SystemResourceType ([
100- 'name ' => 'script_type ' ,
101- 'label ' => 'Script Types ' ,
102- 'description ' => 'Read-only system scripting types. ' ,
103- 'class_name ' => ScriptType::class,
104- 'read_only ' => true ,
106+ 'name ' => 'script_type ' ,
107+ 'label ' => 'Script Types ' ,
108+ 'description ' => 'Read-only system scripting types. ' ,
109+ 'class_name ' => ScriptType::class,
110+ 'subscription_required ' => LicenseLevel::SILVER ,
111+ 'read_only ' => true ,
105112 ])
106113 );
107114 $ df ->addType (
108115 new SystemResourceType ([
109- 'name ' => 'event_script ' ,
110- 'label ' => 'Event Scripts ' ,
111- 'description ' => 'Allows registering server-side scripts to system generated events. ' ,
112- 'class_name ' => EventScript::class,
116+ 'name ' => 'event_script ' ,
117+ 'label ' => 'Event Scripts ' ,
118+ 'description ' => 'Allows registering server-side scripts to system generated events. ' ,
119+ 'class_name ' => EventScript::class,
120+ 'subscription_required ' => LicenseLevel::SILVER ,
113121 ])
114122 );
115123 });
0 commit comments