BlueSpice MediaWiki REL1_27
 All Classes Namespaces Files Functions Variables Groups Pages
Onoi\CallbackContainer\DeferredCallbackLoader Class Reference
Inheritance diagram for Onoi\CallbackContainer\DeferredCallbackLoader:
Collaboration diagram for Onoi\CallbackContainer\DeferredCallbackLoader:

Public Member Functions

 __construct (CallbackContainer $callbackContainer=null)
 
 registerCallbackContainer (CallbackContainer $callbackContainer)
 
 registerCallback ($handlerName, Closure $callback)
 
 registerObject ($handlerName, $instance)
 
 registerExpectedReturnType ($handlerName, $type)
 
 create ($handlerName)
 
 load ($handlerName)
 
 singleton ($handlerName)
 
 deregister ($handlerName)
 
- Public Member Functions inherited from Onoi\CallbackContainer\CallbackInstantiator
 registerCallback ($handlerName,\Closure $callback)
 

Detailed Description

GNU GPL v2+

Since
1.0
Author
mwjames

Constructor & Destructor Documentation

Onoi\CallbackContainer\DeferredCallbackLoader::__construct ( CallbackContainer  $callbackContainer = null)
Since
1.0
Parameters
CallbackContainer | null$callbackContainer

Member Function Documentation

Onoi\CallbackContainer\DeferredCallbackLoader::create (   $handlerName)
Since
1.0

Since
1.1
Parameters
string$handlerName
Returns
mixed
Exceptions
RuntimeException

Implements Onoi\CallbackContainer\CallbackInstantiator.

Onoi\CallbackContainer\DeferredCallbackLoader::deregister (   $handlerName)
Since
1.0
Parameters
string$handlerName
Onoi\CallbackContainer\DeferredCallbackLoader::load (   $handlerName)
Since
1.0
Deprecated:
since 1.1

Since
1.0
Deprecated:
since 1.1, use CallbackInstantiator::create
Parameters
string$handlerName
Returns
mixed
Exceptions
RuntimeException

Implements Onoi\CallbackContainer\CallbackLoader.

Onoi\CallbackContainer\DeferredCallbackLoader::registerCallback (   $handlerName,
Closure  $callback 
)
Since
1.0
Onoi\CallbackContainer\DeferredCallbackLoader::registerCallbackContainer ( CallbackContainer  $callbackContainer)
Since
1.0
Parameters
CallbackContainer$callbackContainer

Implements Onoi\CallbackContainer\CallbackInstantiator.

Onoi\CallbackContainer\DeferredCallbackLoader::registerExpectedReturnType (   $handlerName,
  $type 
)
Since
1.0

Since
1.0
Parameters
string$handlerName
string$type

Implements Onoi\CallbackContainer\CallbackInstantiator.

Onoi\CallbackContainer\DeferredCallbackLoader::registerObject (   $handlerName,
  $instance 
)

If you are not running PHPUnit or for that matter any other testing environment then you are not suppose to use this function.

Since
1.0
Parameters
string$handlerName
mixed$instance
Onoi\CallbackContainer\DeferredCallbackLoader::singleton (   $handlerName)
Since
1.0

Since
1.0
Parameters
string$handlerName
Returns
mixed
Exceptions
RuntimeException

Implements Onoi\CallbackContainer\CallbackInstantiator.


The documentation for this class was generated from the following file: