Returns the requirement for the given key.
string $key The key:
string|null The regex or null when not given
Overrides Route::getRequirement
public function getRequirement($key) {
if (!$key == '_locale') {
throw new \Exception();
}
return $this->locale;
}