public function onRegister($name, Closure $callback)
    {
        $priority                  = $this->getPluginPriority($name);
        $this->registerCallbacks[] = compact('name', 'priority', 'callback');
    }
public function onRegister($name, Closure $callback)
    {
        $priority                  = $this->getPluginPriority($name);
        $this->registerCallbacks[] = compact('name', 'priority', 'callback');
    }
public function onRegister ( $ name , Closure $ callback ) { $ priority = $ this -> getPluginPriority ( $ name ) ; $ this -> registerCallbacks [ ] = compact ( 'name' , 'priority' , 'callback' ) ; }
onRegister method.

@param          $name
@param \Closure $callback
onRegister method .