public function addExtensions(array $extensions)
	{
		if ($extensions)
		{
			$keys = array_map('snake_case', array_keys($extensions));

			$extensions = array_combine($keys, array_values($extensions));
		}

		$this->extensions = array_merge($this->extensions, $extensions);
	}
public function addExtensions(array $extensions)
	{
		if ($extensions)
		{
			$keys = array_map('snake_case', array_keys($extensions));

			$extensions = array_combine($keys, array_values($extensions));
		}

		$this->extensions = array_merge($this->extensions, $extensions);
	}
public function addExtensions ( array $ extensions ) { if ( $ extensions ) { $ keys = array_map ( 'snake_case' , array_keys ( $ extensions ) ) ; $ extensions = array_combine ( $ keys , array_values ( $ extensions ) ) ; } $ this -> extensions = array_merge ( $ this -> extensions , $ extensions ) ; }
Register an array of custom validator extensions.

@param  array  $extensions
@return void
Register an array of custom validator extensions .