protected function makeInstance($class, stdClass $prototype)
    {
        $reflection = new ReflectionClass($class);
        if (isset($prototype->__construct)) {
            $instance = $reflection->newInstanceArgs($prototype->__construct);
            unset($prototype->__construct);
        } else {
            $instance = $reflection->newInstance();
        }

        return $this->doMethodConfiguration($instance, $prototype);
    }
protected function makeInstance($class, stdClass $prototype)
    {
        $reflection = new ReflectionClass($class);
        if (isset($prototype->__construct)) {
            $instance = $reflection->newInstanceArgs($prototype->__construct);
            unset($prototype->__construct);
        } else {
            $instance = $reflection->newInstance();
        }

        return $this->doMethodConfiguration($instance, $prototype);
    }
protected function makeInstance ( $ class , stdClass $ prototype ) { $ reflection = new ReflectionClass ( $ class ) ; if ( isset ( $ prototype -> __construct ) ) { $ instance = $ reflection -> newInstanceArgs ( $ prototype -> __construct ) ; unset ( $ prototype -> __construct ) ; } else { $ instance = $ reflection -> newInstance ( ) ; } return $ this -> doMethodConfiguration ( $ instance , $ prototype ) ; }
Creates and hydrates a concrete annotation class

@param  string   $class     full qualified class name
@param  stdClass $prototype object prototype
@return object   hydrated concrete annotation class
Creates and hydrates a concrete annotation class