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 :)
For me using version 2.2 and following the instructions in the readme didn't work.
More specifically using a
MultisiteDirectoryResolverdidn't work. I got an error about 'WpBridgeTrait' not being set.The error was:
What worked was using
MultisiteResolverManager. This worked for me:Looking at the history of the project I got an impression that the instructions were valid earlier in version 1.0.0. Then when
MultisiteResolverManagerwas added the usage changed but the readme wasn't updated.Then again I'm totally open for being wrong :)