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


Loads the configured Authorization plugin if one exists If no plugin exists the default PermissionService class is returned
public function LoadAuthorization()
	{
		require_once(ROOT_DIR . 'lib/Application/Authorization/namespace.php');
		$authorizationService = new AuthorizationService(new UserRepository());
		$plugin = $this->LoadPlugin(ConfigKeys::PLUGIN_AUTHORIZATION, 'Authorization', $authorizationService);
		if (!is_null($plugin))
		{
			return $plugin;
		}
		return $authorizationService;
	}
public function LoadAuthorization ( ) { require_once ( ROOT_DIR . 'lib/Application/Authorization/namespace.php' ) ; $ authorizationService = new AuthorizationService ( new UserRepository ( ) ) ; $ plugin = $ this -> LoadPlugin ( ConfigKeys :: PLUGIN_AUTHORIZATION , 'Authorization' , $ authorizationService ) ; if ( ! is_null ( $ plugin ) ) { return $ plugin ; } return $ authorizationService ; }
Loads the configured Authorization plugin, if one exists
 If no plugin exists, the default PermissionService class is returned
Loads the configured Authorization plugin if one exists If no plugin exists the default PermissionService class is returned