booked/lib/Common/PluginManager.php
/**
	 * Loads the configured Permission plugin, if one exists
	 * If no plugin exists, the default PermissionService class is returned
	 *
	 * @return IPermissionService
	 */
Loads the configured Permission plugin, if one exists
If no plugin exists, the default PermissionService class is returned


Loads the configured Permission plugin if one exists If no plugin exists the default PermissionService class is returned
public function LoadPermission()
	{
		require_once(ROOT_DIR . 'lib/Application/Authorization/namespace.php');
		$resourcePermissionStore = new ResourcePermissionStore(new ScheduleUserRepository());
		$permissionService = new PermissionService($resourcePermissionStore);
		$plugin = $this->LoadPlugin(ConfigKeys::PLUGIN_PERMISSION, 'Permission', $permissionService);
		if (!is_null($plugin))
		{
			return $plugin;
		}
		return $permissionService;
	}
public function LoadPermission ( ) { require_once ( ROOT_DIR . 'lib/Application/Authorization/namespace.php' ) ; $ resourcePermissionStore = new ResourcePermissionStore ( new ScheduleUserRepository ( ) ) ; $ permissionService = new PermissionService ( $ resourcePermissionStore ) ; $ plugin = $ this -> LoadPlugin ( ConfigKeys :: PLUGIN_PERMISSION , 'Permission' , $ permissionService ) ; if ( ! is_null ( $ plugin ) ) { return $ plugin ; } return $ permissionService ; }
Loads the configured Permission plugin, if one exists
 If no plugin exists, the default PermissionService class is returned
Loads the configured Permission plugin if one exists If no plugin exists the default PermissionService class is returned