I first spot this in the docs where i saw the setmethod in the middle of other fluid calls.

Settargeturi would be a nice name - if we go for the semantic way. 
 
There must be other places where you had to choose html vs semantic, which way did you choose then ? (Consistency is also to consider)




----- Reply message -----
De : "Bernhard Schussek" <notifications@github.com>
Pour : "symfony/symfony" <symfony@noreply.github.com>
Cc : "Victor Berchet" <victor@suumit.com>
Objet : [symfony] [Form] Implemented form processors (#6522)
Date : jeu., janv. 3, 2013 00:08
In src/Symfony/Component/Form/FormConfigBuilder.php:
> @@ -877,16 +947,64 @@ public function setFormFactory(FormFactoryInterface $formFactory)
>      /**
>       * {@inheritdoc}
>       */
> +    public function setAction($action)
> +    {
> +        if ($this->locked) {
> +            throw new FormException('The config builder cannot be modified anymore.');
> +        }
> +
> +        $this->action = $action;
> +
> +        return $this;
> +    }
> +
> +    /**
> +     * {@inheritdoc}
> +     */
> +    public function setMethod($method)

I think there are two possibilities: 


trying to find semantically exact names, such as setHttpMethod and setTargetUri

reusing what people know from HTML
I decided to go with the latter because I thought it would be more intuitive and easier to remember. If enough people are convinced of the opposite, I'm open to changing this.


&mdash;

Reply to this email directly or view it on GitHub.