src/A1comms/GaeSupportLaravel/GaeSupportServiceProvider.php
/**
     * Bootstrap any application services.
     *
     * @return void
     */
Bootstrap any application services.
@return void
Bootstrap any application services . @return void
public function boot()
    {
        $this->publishes([
            __DIR__.'/../../config/gaesupport.php' => config_path('gaesupport.php'),
        ]);
        if ($this->app->runningInConsole()) {
            $this->commands([
                Console\GaePrepareCommand::class,
            ]);
        }
        Session::extend('gae', function ($app) {
            return new DatastoreSessionHandler;
        });
        Storage::extend('gae', function ($app, $config) {
            return new Flysystem(new GaeFilesystemAdapter($config['root']));
        });
        require __DIR__.'/Http/routes.php';
    }
public function boot ( ) { $ this -> publishes ( [ __DIR__ . '/../../config/gaesupport.php' => config_path ( 'gaesupport.php' ) , ] ) ; if ( $ this -> app -> runningInConsole ( ) ) { $ this -> commands ( [ Console \ GaePrepareCommand :: class , ] ) ; } Session :: extend ( 'gae' , function ( $ app ) { return new DatastoreSessionHandler ; } ) ; Storage :: extend ( 'gae' , function ( $ app , $ config ) { return new Flysystem ( new GaeFilesystemAdapter ( $ config [ 'root' ] ) ) ; } ) ; require __DIR__ . '/Http/routes.php' ; }
Bootstrap any application services.
Bootstrap any application services .
// Publish our config file when the user runs "artisan vendor:publish". // Register the DatastoreSessionHandler // register the package's routes