The application context has his own resource manager, which can be retrieved by calling the __Context::getResourceManager() method
//Retrieve the __ResourceManager instance associated to the application context: $resource_manager = __ApplicationContext::getInstance()->getResourceManager();
Methods
void addResource( __ResourceBase &$resource, [ $language_iso_code = null] )
void addResourceProvider( __ResourceProvider &$resource_provider )
__ResourceDictionary are objects that group Resources
void addSupportedLanguage( $language_iso_code )
__ResourceManager &getContextInstance( $context_id )
__ResourceManager &getInstance( )
Use __Context::getResourceManager() method instead of
__ResourceBase getResource( string $resource_key, [ $language_iso_code = null] )
It will ask to all __ResourceDictionary instances if any of them has the resource, and will return it if it's found.
void hasResource( $resource_key, [ $language_iso_code = null] )
void isSupportedLanguage( $language_iso_code )
void loadActionResources( $action_identity, [ $language_iso_code = null] )
void removeResource( $resource_id )