function addCallable($methodCallable, $priority = 10)
    {
        if (!is_callable($methodCallable))
            throw new \InvalidArgumentException('Param must be callable');

        $this->_getPriorityQueue()->insert($methodCallable, $priority);
        return $this;
    }
function addCallable($methodCallable, $priority = 10)
    {
        if (!is_callable($methodCallable))
            throw new \InvalidArgumentException('Param must be callable');

        $this->_getPriorityQueue()->insert($methodCallable, $priority);
        return $this;
    }
function addCallable ( $ methodCallable , $ priority = 10 ) { if ( ! is_callable ( $ methodCallable ) ) throw new \ InvalidArgumentException ( 'Param must be callable' ) ; $ this -> _getPriorityQueue ( ) -> insert ( $ methodCallable , $ priority ) ; return $ this ; }
Add Callable Method

Methods will bind to service immediately:
[code]
function($instance, $container) {
if ($instance instanceof Application\ModuleAsService)
// do something
}
[/code]

!! and get service as first argument if service not object
function($service)

@param callable $methodCallable  Callable
@param int      $priority        Priority

@return $this
Add Callable Method