Skip to content
Snippets Groups Projects
  • Chris Smith's avatar
    e842bd07
    Fix for FS#1598 - allow a plugin to be a singleton if it so desires · e842bd07
    Chris Smith authored
    DokuWiki typically instantiates a plugin once and reuses
    that instance whenever the plugin is required. However on
    some occasions DokuWiki will request a new instantiation of
    a plugin.  This particularly applies to render plugins.  This
    patch allows a plugin to force DokuWiki to reuse the existing
    instance.
    
    If a plugin wishes to only be instantiated once then it
    should implement an "isSingleton()" method and that
    method should return boolean true.
    
    darcs-hash:20090211143520-f07c6-5c1a33dbed55f0b196a204745fe3139f3c7c0aa9.gz
    e842bd07
    History
    Fix for FS#1598 - allow a plugin to be a singleton if it so desires
    Chris Smith authored
    DokuWiki typically instantiates a plugin once and reuses
    that instance whenever the plugin is required. However on
    some occasions DokuWiki will request a new instantiation of
    a plugin.  This particularly applies to render plugins.  This
    patch allows a plugin to force DokuWiki to reuse the existing
    instance.
    
    If a plugin wishes to only be instantiated once then it
    should implement an "isSingleton()" method and that
    method should return boolean true.
    
    darcs-hash:20090211143520-f07c6-5c1a33dbed55f0b196a204745fe3139f3c7c0aa9.gz
Code owners
Assign users and groups as approvers for specific file changes. Learn more.