public function setRequestFactory(Factory $factory) { $this->register(self::REQUEST_FACTORY, $factory); }