You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewRuntimeException('Could not find the Composer vendor directory. Did you run "composer require bref/bref"? Read https://bref.sh/docs/environment/php#custom-vendor-path if your Composer vendor directory is in a custom path.');
}
require$autoloadPath;
// `RUNTIME_CLASS` is for backwards compatibility with Bref v2's environment variable
thrownewRuntimeException('The environment variable `BREF_RUNTIME` is not set, are you trying to use Bref v2 with Bref v3 layers? Make sure to follow the Bref documentation to use the right layers for your current Bref version.');
}
$runtimeClass = match ($runtime) {
'function' => 'Bref\FunctionRuntime\Main',
'fpm' => 'Bref\FpmRuntime\Main',
'console' => 'Bref\ConsoleRuntime\Main',
default => $runtime,
};
if (! class_exists($runtimeClass)) {
thrownewRuntimeException("Bref is not installed in your application (could not find the class \"$runtimeClass\" in Composer dependencies). Did you run \"composer require bref/bref\"?");