Revert "Revert "Web\Hook: register('grapher')
This reverts commit 65564cda65
.
The test was wrong, not the code.
This commit is contained in:
parent
3615b96093
commit
0e926ba05e
|
@ -123,7 +123,7 @@ class Hook
|
|||
*/
|
||||
private static function assertValidHook($instance, $name)
|
||||
{
|
||||
$base_class = self::$BASE_NS . ucfirst($name);
|
||||
$base_class = self::$BASE_NS . ucfirst($name) . 'Hook';
|
||||
|
||||
if (strpos($base_class, self::$classSuffix) === false) {
|
||||
$base_class .= self::$classSuffix;
|
||||
|
|
Loading…
Reference in New Issue