The way you are used to trigger callbacks in contao:
if (isset($GLOBALS['TL_HOOKS']['whatever']) && is_array($GLOBALS['TL_HOOKS']['whatever']))
{
foreach ($GLOBALS['TL_HOOKS']['whatever'] as $callback)
{
$this->import($callback[0]);
$this->$callback[0]->$callback[1]($foo, $bar);
}
}
Doing the same with Hooky:
\Hooky::trigger('whatever', $foo, $bar);
Copyright (c) 2013 Simon Kusterer Licensed under the LGPL license.