def add_to_environment(self, environment):
self._env = environment._env<EOL>self._userdata = ffi.new_handle(self)<EOL>ENVIRONMENT_DATA[self._env].routers[self.name] = self<EOL>lib.EnvAddRouterWithContext(<EOL>self._env, self._name.encode(), self._priority,<EOL>lib.query_function,<EOL>lib.print_function,<EOL>lib.getc_function,<EOL>lib.ungetc_function,<EOL>lib.exit_function,<EOL>self._userdata)<EOL>
Add the router to the given environment.