src/Hook/Hook.php
public static function create($name) {
		$name = static::slug($name);
		static::$hooks[$name] = new static($name);
		return self::$hooks[$name];
	}
public static function create($name) {
		$name = static::slug($name);
		static::$hooks[$name] = new static($name);
		return self::$hooks[$name];
	}
public static function create ( $ name ) { $ name = static :: slug ( $ name ) ; static :: $ hooks [ $ name ] = new static ( $ name ) ; return self :: $ hooks [ $ name ] ; }
Create new Hook

@param string $name The new hook name.
@return Hook The new hook.
Create new Hook