public function testDefaultRegistryAndHookDispatcherInstances() { $application = new WikiaApp(); $this->assertInstanceOf('WikiaHookDispatcher', $application->getHookDispatcher()); $this->assertInstanceOf('WikiaGlobalRegistry', $application->getGlobalRegistry()); $this->assertInstanceOf('WikiaLocalRegistry', $application->getLocalRegistry()); }
public function __construct(WikiaApp $app) { $this->app = $app; $this->allowedNamespaces = $app->getLocalRegistry()->get('UserProfilePageNamespaces'); $this->title = $app->wg->Title; }