protected function generatePhpIni($appId, $bucketId, $filePath)
    {
        if (file_exists($filePath)) {
            $overwrite = $this->myCommand->confirm(
                'Overwrite the existing "php.ini" file?', false
            );

            if (! $overwrite) {
                return;
            }
        }

        $storageBucket = "{$appId}.appspot.com";
        if ($bucketId !== null) {
            $storageBucket = $bucketId;
        }

        $contents =
<<<EOT
; enable function that are disabled by default in the App Engine PHP runtime
google_app_engine.enable_functions = "php_sapi_name, php_uname, getmypid"
google_app_engine.allow_include_gs_buckets = "{$storageBucket}"
allow_url_include = 1
EOT;
        file_put_contents($filePath, $contents);

        $this->myCommand->info('Generated the "php.ini" file.');
    }
protected function generatePhpIni($appId, $bucketId, $filePath)
    {
        if (file_exists($filePath)) {
            $overwrite = $this->myCommand->confirm(
                'Overwrite the existing "php.ini" file?', false
            );

            if (! $overwrite) {
                return;
            }
        }

        $storageBucket = "{$appId}.appspot.com";
        if ($bucketId !== null) {
            $storageBucket = $bucketId;
        }

        $contents =
<<<EOT
; enable function that are disabled by default in the App Engine PHP runtime
google_app_engine.enable_functions = "php_sapi_name, php_uname, getmypid"
google_app_engine.allow_include_gs_buckets = "{$storageBucket}"
allow_url_include = 1
EOT;
        file_put_contents($filePath, $contents);

        $this->myCommand->info('Generated the "php.ini" file.');
    }
protected function generatePhpIni ( $ appId , $ bucketId , $ filePath ) { if ( file_exists ( $ filePath ) ) { $ overwrite = $ this -> myCommand -> confirm ( 'Overwrite the existing "php.ini" file?' , false ) ; if ( ! $ overwrite ) { return ; } } $ storageBucket = "{$appId}.appspot.com" ; if ( $ bucketId !== null ) { $ storageBucket = $ bucketId ; } $ contents = 
<<<EOT
; enable function that are disabled by default in the App Engine PHP runtime
google_app_engine.enable_functions = "php_sapi_name, php_uname, getmypid"
google_app_engine.allow_include_gs_buckets = "{$storageBucket}"
allow_url_include = 1
EOT ; file_put_contents ( $ filePath , $ contents ) ; $ this -> myCommand -> info ( 'Generated the "php.ini" file.' ) ; }
Generates a "php.ini" file for a GAE app.

@param string $appId the GAE app id.
@param string $bucketId the GAE gs-bucket id.
@param string $filePath the 'php.ini' file path.
Generates a php . ini file for a GAE app .