1. Go to this page and download the library: Download componenta/app-roadrunner library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
componenta / app-roadrunner example snippets
namespace App\Infrastructure\Reset;
use App\Tenant\TenantContext;
use Componenta\App\RoadRunner\Reset\RequestResetterInterface;
final readonly class TenantContextResetter implements RequestResetterInterface
{
public function __construct(private TenantContext $context) {}
public function reset(): void
{
$this->context->clear();
}
}