docs/examples/ConfigurationAnnotation/example.php
public function someBean($arg1, $arg2)
    {
        $ret = new MyBean($this->dependency, $arg1, $arg2);
        $ret->setSomeProperty('hello world');
        return $ret;
    }
public function someBean($arg1, $arg2)
    {
        $ret = new MyBean($this->dependency, $arg1, $arg2);
        $ret->setSomeProperty('hello world');
        return $ret;
    }
Notice how the name= here replaces the bean name that comes from the method.
This bean should be called someBean (if no name= arguments where passed to the
bean annotation.)

@Bean(name=someBeanRenamed,class=MyBean)
@Scope(value=prototype)
@InitMethod(method=aMethod)
@DestroyMethod(method=bMethod)
@Value(value="arg1")
@Value(value="arg2")