Skip to content

Documentation on usage seems outdated #36

@GoranGozo

Description

@GoranGozo

For me using version 2.2 and following the instructions in the readme didn't work.
More specifically using a MultisiteDirectoryResolver didn't work. I got an error about 'WpBridgeTrait' not being set.
The error was:

Call to a member function addFilter() on a non-object in Gwa/AbstractResolver.php on line 119

What worked was using MultisiteResolverManager. This worked for me:

$manager = new Gwa\Wordpress\MultisiteResolverManager('custom/install/path', $type);
$manager->init();

Looking at the history of the project I got an impression that the instructions were valid earlier in version 1.0.0. Then when MultisiteResolverManager was added the usage changed but the readme wasn't updated.
Then again I'm totally open for being wrong :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions