Bref/Application class not found #1310
Unanswered
maverick108
asked this question in
Support
Replies: 2 comments 3 replies
-
Hi, it seems you are following an outdated tutorial. I would recommend to uninstall Bref and start from scratch here: https://bref.sh/docs/installation.html |
Beta Was this translation helpful? Give feedback.
0 replies
-
I have followed those as well. But I was not able to make the SLIM framework with bref. It not routing properly. It says page not found. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description:
I am trying to run a SLIMMVC API with brief
The below code is throwing a class not found an error
$app = new \Bref\Application;
How to reproduce:
composer install bref/bref or mnapoli/bref and slim 3.x
`<?php
use Bref\Bridge\Slim\SlimAdapter;
require DIR.'/vendor/autoload.php';
$slim = new Slim\App;
$slim->get('/dev', function ($request, $response) {
$response->getBody()->write('Hello world!');
return $response;
});
$app = new \Bref\Application;
$app->httpHandler(new SlimAdapter($slim));
$app->run();
?>`
Run the index.php file, you will get the error
Is there a bridge for bref and SLIM framework?
Beta Was this translation helpful? Give feedback.
All reactions