File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
+ // Check Auto-Loader
3
+ if ( !is_dir (__DIR__ .'/vendor ' ) || !is_readable (__DIR__ .'/vendor/autoload.php ' )) {
4
+ die ('vendor/autoload.php could not be read ' );
5
+ }
6
+
7
+ // Apply Auto-Loader
2
8
require_once __DIR__ .'/vendor/autoload.php ' ;
3
9
use Google \CloudFunctions \FunctionsFramework ;
4
10
5
- // Register the function with Functions Framework.
11
+ // Register functions with the Functions Framework.
6
12
// https://console.cloud.google.com/functions/list
7
- FunctionsFramework::http ( "on_https " , "Quickstart \\CloudFunctions::on_https " );
8
- FunctionsFramework::cloudEvent ( "on_pubsub " , "Quickstart \\CloudFunctions::on_pubsub " );
9
- FunctionsFramework::cloudEvent ( "on_gcs " , "Quickstart \\CloudFunctions::on_gcs " );
13
+ FunctionsFramework::http ( 'on_https ' , 'Quickstart \\CloudFunctions::on_https ' );
14
+ FunctionsFramework::cloudEvent ( 'on_pubsub ' , 'Quickstart \\CloudFunctions::on_pubsub ' );
15
+ FunctionsFramework::cloudEvent ( 'on_gcs ' , 'Quickstart \\CloudFunctions::on_gcs ' );
16
+
You can’t perform that action at this time.
0 commit comments