In the above repo, extensions have been loaded via the R::ext() method, but when Composer is used, it's necessary to run class_exists() in order to have RedBean register that the class itself exists. For example, the following will throw an exception in RedBean:
There seems to be an issue with loading extensions via Composer. Please see https://github.com/benmajor/RedSeed/issues/1.
In the above repo, extensions have been loaded via the
R::ext()
method, but when Composer is used, it's necessary to runclass_exists()
in order to have RedBean register that the class itself exists. For example, the following will throw an exception in RedBean:Such as:
But running the following works as expected:
Are there any known bugs for
R::ext()
? It seems strange that even callingclass_exists()
seems to fix whatever issue there is?