groton-school/slim-gae-shim

dev-main 2025-03-29 23:21 UTC

This package is auto-updated.

Last update: 2025-03-29 23:21:34 UTC


README

Latest Version

composer create-project slim/slim-skeleton [my-app-name]
cd [my-app-name]
composer require groton-school/slim-gae-shim
cp vendor/groton-school/slim-gae-shim/.gcloudignore .
cp vendor/groton-school/slim-gae-shim/app.yaml .
cp -R vendor/groton-school/slim-gae-shim/bin .
cp vendor/groton-school/slim-gae-shim/package.json .
cp vendor/groton-school/slim-gae-shim/php.ini .
npm install

Implement GrotonSchool\Slim\GAE\SettingsInferface and DI\get() the implementation. Also, inject the dependencies and routes from the shim:

app/dependencies.php

$containerBuilder->addDefinitions([
    GrotonSchool\Slim\GAE\SettingsInterface::class => DI\get(App\Application\Settings::class)
]);
GrotonSChool\Slim\GAE\Dependencies::addDefinitions($containerBuilder);

app/routes.php

GrotonSchool\Slim\GAE\Routes::register($app);