Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
addPackage with prefix ignores $prefix, while setPackage uses it #161
Creates the tables in the schema, but with the modx_ prefix.
switching it to
Performs as expected subsequently allowing tables to be created correctly. But also has the problem of changing the prefix for the MODX\Revolution package.
As mentioned in #154 PSR-4 is a bit of a pain. The Parser can create the base files anywhere you point it to, but then xpdo->addPackage / setPackage can not load them.
The Not Found is solved by using an autoloader within the main addon Class,
Using the exact same format as the MODX installer:
$this->prefix is set to 'bbl_'
The prefix is ignored. I even tried placing it within the schema like we did in legacy versions.
For what it is worth, I do have PSR-4 working. It is just using the wrong prefix.