init() публичный Метод

This method is required by IModule and is invoked by application. It loads user/role information from the module configuration.
public init ( $config )
Пример #1
0
 public function testSwitchToGuest()
 {
     $userManager = new TUserManager();
     $userManager->init(self::$config);
     $user = $userManager->getUser('joe');
     $userManager->switchToGuest($user);
     self::assertTrue($user->getIsGuest());
 }