Skip to content

php-runtime/roadrunner-symfony-nyholm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2dbc81d · Feb 18, 2025

History

24 Commits
Mar 20, 2021
Sep 7, 2021
Sep 7, 2021
Mar 20, 2021
Feb 18, 2025
Mar 20, 2021
Nov 4, 2021
Nov 17, 2024
Nov 30, 2021

Repository files navigation

RoadRunner Runtime for Symfony with nyholm/psr7

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.

// .env
APP_RUNTIME=Runtime\RoadRunnerSymfonyNyholm\Runtime
// .rr.yaml
server:
    ...
    env:
        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']);
};