Fatal error: Class 'RedBean_Facade' not found in

36 views
Skip to first unread message

BEN Naoufal

unread,
Nov 16, 2015, 12:02:27 PM11/16/15
to redbeanphp
Hi,

I'm new to RedBean, my application was working, but when I updated RedBean to the last version using Composer, I got this error, 
Fatal error: Class 'RedBean_Facade' not found in my bootstrap.php file :

<?php
require_once __DIR__ . '/config.inc.php';
require_once __DIR__ . '/../vendor/autoload.php';

use RedBean_Facade as R;

if (empty(R::$currentDB)) {
    $dsn = sprintf('%s:host=%s;dbname=%s', DB_TYPE, DB_HOST, DB_NAME);
    R::setup($dsn, DB_USER, DB_PASSWORD);
}

R::close();

I don't understand if it's releated to the new version of RedBean or to my Composer autoloader which take into account just one library?

Thanks in advance for your help!
Reply all
Reply to author
Forward
0 new messages