public function addBeforeHook($hook)
	{
		if (!isset($this->options['before'])) {
			$this->options['before'] = [];
		}
		$this->options['before'][] = $hook;
	}
public function addBeforeHook($hook)
	{
		if (!isset($this->options['before'])) {
			$this->options['before'] = [];
		}
		$this->options['before'][] = $hook;
	}
Add a before hook.

@param string $hook