runtime/roadrunner-symfony-nyholm

Roadrunner runtime for with nyholm/psr7

Fund package maintenance!
nyholm

Installs: 1 073

Dependents: 0

Suggesters: 0

Security: 0

Stars: 13

Watchers: 4

Forks: 1

0.2.0 2021-09-10 20:33 UTC

This package is auto-updated.

Last update: 2021-09-10 20:37:00 UTC


README

A runtime for RoadRunner.

If you are new to the Symfony Runtime component, read more in the main readme.

Installation

composer require runtime/roadrunner-symfony-nyholm

Usage

Define the environment variable APP_RUNTIME for your application.

APP_RUNTIME=Runtime\RoadRunnerSymfonyNyholm\Runtime
// public/index.php

use App\Kernel;

require_once dirname(__DIR__).'/vendor/autoload_runtime.php';

return function (array $context) {
    return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};