About Features Downloads Getting Started Documentation Events Support GitHub

Love VuFind®? Consider becoming a financial supporter. Your support helps build a better VuFind®!

Site Tools


Warning: This page has not been updated in over over a year and may be outdated or deprecated.
development:plugins:auto_injection_interfaces

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
development:plugins:auto_injection_interfaces [2015/12/09 19:42] – ↷ Links adapted because of a move operation demiankatzdevelopment:plugins:auto_injection_interfaces [2017/11/01 20:01] – [Auto Injection Interfaces] demiankatz
Line 1: Line 1:
 ====== Auto Injection Interfaces ====== ====== Auto Injection Interfaces ======
  
-Any VuFind plugin accessed through a [[vufind2:general_plugin_information|standard plugin interface]] can implement certain "-Aware" interfaces in order to be automatically injected with dependencies.  This is a convenient way to gain access to other elements of the VuFind system.+Any VuFind plugin accessed through a [[development:plugins:general_information|standard plugin interface]] can implement certain "-Aware" interfaces in order to be automatically injected with dependencies.  This is a convenient way to gain access to other elements of the VuFind system.
  
 Here are the relevant interfaces: Here are the relevant interfaces:
Line 9: Line 9:
   * \VuFindHttp\HttpServiceAwareInterface - Get access to the VuFind\Http service   * \VuFindHttp\HttpServiceAwareInterface - Get access to the VuFind\Http service
   * \Zend\Log\LoggerAwareInterface - Get access to the VuFind\Logger service   * \Zend\Log\LoggerAwareInterface - Get access to the VuFind\Logger service
-  * \Zend\ServiceManager\ServiceLocatorAwareInterface - Get access to the plugin manager that constructed the current object+  * \Zend\ServiceManager\ServiceLocatorAwareInterface - Get access to the plugin manager that constructed the current object :!: No longer supported beginning with VuFind 4.0.
   * \ZfcRbac\Service\AuthorizationServiceAwareInterface - Get access to the authorization service (for permission checks)   * \ZfcRbac\Service\AuthorizationServiceAwareInterface - Get access to the authorization service (for permission checks)
  
-You can also implement a setPluginManager() method as an alternative to implementing the \Zend\ServiceManager\ServiceLocatorAwareInterface; the result is the same.+You can also implement a setPluginManager() method as an alternative to implementing the \Zend\ServiceManager\ServiceLocatorAwareInterface; the result is the same. :!: setPluginManager no longer triggers auto-injection starting with VuFind 5.0.
  
 ===== Traits ===== ===== Traits =====
development/plugins/auto_injection_interfaces.txt · Last modified: 2020/03/03 20:26 by demiankatz