original_string: public function registerAliasForArgument(string $id, string $type, string $name = null): Alias
      {
          $name = lcfirst(str_replace(' ', '', ucwords(preg_replace('/[^a-zA-Z0-9\x7f-\xff]++/', ' ', $name ?? $id))));
  
          if (!preg_match('/^[a-zA-Z_\x7f-\xff]/', $name)) {
              throw new InvalidArgumentException(sprintf('Invalid argument name "%s" for service "%s": the first character must be a letter.', $name, $id));
          }
  
          return $this->setAlias($type.' $'.$name, $id);
      }
code: public function registerAliasForArgument(string $id, string $type, string $name = null): Alias
      {
          $name = lcfirst(str_replace(' ', '', ucwords(preg_replace('/[^a-zA-Z0-9\x7f-\xff]++/', ' ', $name ?? $id))));
  
          if (!preg_match('/^[a-zA-Z_\x7f-\xff]/', $name)) {
              throw new InvalidArgumentException(sprintf('Invalid argument name "%s" for service "%s": the first character must be a letter.', $name, $id));
          }
  
          return $this->setAlias($type.' $'.$name, $id);
      }
code_tokens: public function registerAliasForArgument ( string $ id , string $ type , string $ name = null ) : Alias { $ name = lcfirst ( str_replace ( ' ' , '' , ucwords ( preg_replace ( '/[^a-zA-Z0-9\x7f-\xff]++/' , ' ' , $ name ?? $ id ) ) ) ) ; if ( ! preg_match ( '/^[a-zA-Z_\x7f-\xff]/' , $ name ) ) { throw new InvalidArgumentException ( sprintf ( 'Invalid argument name "%s" for service "%s": the first character must be a letter.' , $ name , $ id ) ) ; } return $ this -> setAlias ( $ type . ' $' . $ name , $ id ) ; }
docstring: Registers an autowiring alias that only binds to a specific argument name.
  
  The argument name is derived from $name if provided (from $id otherwise)
  using camel case: "foo.bar" or "foo_bar" creates an alias bound to
  "$fooBar"-named arguments with $type as type-hint. Such arguments will
  receive the service $id when autowiring is used.
docstring_tokens: Registers an autowiring alias that only binds to a specific argument name .